Tsentom1 Python Promotions

How can I prevent the marauder promotion from working against barbarians (and animals) ?

[ need something like: if playerY is not barbar ]

edit: nevermind. got it:

PHP:
if ((pWinner.isHasPromotion(gc.getInfoTypeForString('PROMOTION_MARAUDER'))) and (not pLoser.isBarbarian())):
 
How can I prevent the marauder promotion from working against barbarians (and animals) ?

[ need something like: if playerY is not barbar ]

Code:
	if pLoser.getUnitCombatType() != gc.getInfoTypeForString('UNITCOMBAT_ANIMAL'):

        	   if (pLoser.getCivilizationType() != gc.getInfoTypeForString('CIVILIZATION_BARBARIAN')):
 
Back
Top Bottom