UnitStat_TacticalSpellManaCost_Multiplier Question.

Path of the Mage uses this code for mana spell cost reduction:

            <GameModifier>
                <ModType>Unit</ModType>
                <Attribute>AdjustUnitStat</Attribute>
                <StrVal>UnitStat_TacticalSpellManaCost_Multiplier</StrVal>
                <Value>-0.25</Value>
                <Provides>-25% mana cost for tactical spells</Provides>
            </GameModifier>

I picked the path of the Ninja (a custom path) for the Avatar of Justice, a custom spirit hero from OtherWorldlyAllies mod, and in the first battle after I chose Path of the Ninja, the Haste tactical spell actually cost 128 mana, and the other spells were more, when I used this same code.  Has something changed recently?  (I mean, loads of people would have used the Mage Path, and we haven't had the problem of multiplying mana cost being reported).

There are no conflicting files in my Mods directory AFAIK.  In my latest games, I have been using Slow from Water Adept by a Mage hero and it worked fine.  I wonder if this is a once-off bug?  I'll check.

EDIT: No, it happened again in the same battle.

Any ideas?

5,179 views 8 replies
Reply #1 Top

Does anyone know what could cause Haste to cost 128 mana, and the more expensive spells even more, even though the code is the same as in Path of the Mage?

Reply #2 Top

it must be something in path of the ninja.

Reply #3 Top

This is the tag from my path of the ninja file:

Code: xml
  1.             &lt;GameModifier&gt;
  2.                 &lt;ModType&gt;Unit&lt;/ModType&gt;
  3.                 &lt;Attribute&gt;AdjustUnitStat&lt;/Attribute&gt;
  4.                 &lt;StrVal&gt;UnitStat_TacticalSpellManaCost_Multiplier&lt;/StrVal&gt;
  5.                 &lt;Value&gt;-25&lt;/Value&gt;
  6.                 &lt;Provides&gt;-25% mana cost for tactical spells&lt;/Provides&gt;
  7.             &lt;/GameModifier&gt;

What should be -.25 is -25. Must be causing trouble when the hard code gets that huge negative value it doesn't expect.

Reply #4 Top

No, I corrected it in my mods folder, and the old file was overwritten by the new file.  The file in my mods folder has the same entry for mana cost discount as the Path of the Mage, and yet there's something weird going on.  I'm not sure if it's to do with the actual hero involved, or not.  But I know for sure that I had already corrected it to <Value>-0.25</Value> already.

Reply #5 Top

This is the file that I have for the Ninja Path.  The spell cost reduction seems to be bugged no matter what hero.  I even tried changing "<Type>" from <Type>Ability</Type> to <Type>Spell</Type>, like the way the Path of the Mage is done in CoreAbilities.xml, but that didn't make any difference.

http://legendaryheroesmods.stevenaus.fastmail.com.au/FELHNinjaPath.xml

In my test games just then with a new sov, for some reason, my Wraith Sov was getting 40XP just for defeating a Wolf Lair with the starting army.  I didn't spend all my points.  On my normal sov, he doesn't seem to get that high just for defeating a starting level stack.

Reply #8 Top

Primal knows, like, everything, breh.