[0.952] Spell Sacrifice kills entire population

Spell sacrifice says it should take half population and turn them into mana.

<Description>Target city sacrifices half its citizens to produce 1 mana per sacrifice.</Description>
End of quote

In actuality, it kills all the population and returns 0.5 mana per killed. The problem is this modifier

        <GameModifier>
            <ModType>City</ModType>
            <Attribute>Sacrifice</Attribute>
            <StrVal>Mana</StrVal>
            <Multiplier>0.5</Multiplier>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[CityPopulation]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
End of quote

which should be

    <GameModifier>
      <ModType>City</ModType>
      <Attribute>Sacrifice</Attribute>
      <StrVal>Mana</StrVal>
      <Calculate InternalName="Calc" ValueOwner="TargetCity">
        <Expression><![CDATA[[CityPopulation] / 2]]></Expression>
      </Calculate>
      <Calculate InternalName="Value">
        <Expression><![CDATA[[Calc]]]></Expression>
      </Calculate>
    </GameModifier>
End of quote

 

1,426 views 2 replies
Reply #1 Top

Now I have to try that spell 0_0

Assuming of course, that my people will come back once they have been turned into money- I mean mana.

Reply #2 Top

Fixed, thanks.