MagisterCultuum
Great Sage
I just found my first bug in the latest release.
you need to add this line to the top of postCombatNegatusMysterium (or anywhere before iWard is called) :
iWard = gc.getInfoTypeForString('IMPROVEMENT_RING_OF_WARDING')
When searching for iWard I also found it was not defined in def spellPurgeMagic, as that function is practically just a cop of the Runewyn's postCombat call but which can be used without combat by the Grigori hero Paimon.
Edit: I also just found a mistake in the PyHelp string for the (Greater) Loyalty spell.
<PyHelp>helpTogglePromotions(lpUnits, eSpell, ['PROMOTION_LOYALTY'], ['PROMOTION_REBELLIOUS','PROMOTION_MORALE'], 1, False)</PyHelp>
should be
<PyHelp>helpTogglePromotions(lpUnits, eSpell, ['PROMOTION_LOYALTY', 'PROMOTION_MORALE'], ['PROMOTION_REBELLIOUS'], 1, False)</PyHelp>
The way it is makes it appear that it is removing rather than adding Morale.
edit: found another bug
This is a simple typo. I am not sure how that 'r' got there.
Code:
Traceback (most recent call last):
File "CvSpellInterface", line 73, in postCombatWon
File "<string>", line 0, in ?
File "CvSpellInterface", line 3041, in postCombatNegatusMysterium
NameError: global name 'iWard' is not defined
ERR: Python function postCombatWon failed, module CvSpellInterface
iWard = gc.getInfoTypeForString('IMPROVEMENT_RING_OF_WARDING')
When searching for iWard I also found it was not defined in def spellPurgeMagic, as that function is practically just a cop of the Runewyn's postCombat call but which can be used without combat by the Grigori hero Paimon.
Edit: I also just found a mistake in the PyHelp string for the (Greater) Loyalty spell.
<PyHelp>helpTogglePromotions(lpUnits, eSpell, ['PROMOTION_LOYALTY'], ['PROMOTION_REBELLIOUS','PROMOTION_MORALE'], 1, False)</PyHelp>
should be
<PyHelp>helpTogglePromotions(lpUnits, eSpell, ['PROMOTION_LOYALTY', 'PROMOTION_MORALE'], ['PROMOTION_REBELLIOUS'], 1, False)</PyHelp>
The way it is makes it appear that it is removing rather than adding Morale.
edit: found another bug
Code:
Traceback (most recent call last):
File "CvSpellInterface", line 73, in postCombatWon
File "<string>", line 0, in ?
File "CvSpellInterface", line 2887, in postCombatAuricAscendedWon
NameError: global name 'pOpponentr' is not defined
ERR: Python function postCombatWon failed, module CvSpellInterface
Last edited: