Dancing Hoskuld
Deity
OK, I am not understanding something as no all promotions have no combat types after the change
.
I was using
I am now using
BTW I think I can get rid of the 0 != as the return is true or false anyway. 0 is false and not zero is true in Python.
edit Doh! I am using Unit Combat not Unit Combat Type assuming they are different.

I was using
Code:
for iI in range(gc.getNumUnitCombatInfos()):
if (0 != gc.getPromotionInfo(self.iPromotion).getUnitCombat(iI)):
I am now using
Code:
for iI in range(gc.getNumUnitCombatInfos()):
if (0 != gc.getPromotionInfo(self.iPromotion).isQualifiedUnitCombatType(iI)):
BTW I think I can get rid of the 0 != as the return is true or false anyway. 0 is false and not zero is true in Python.
edit Doh! I am using Unit Combat not Unit Combat Type assuming they are different.