Error in your code for Guardian wind spell

Your description says that Guardian wind gives +15 to dodge, but the code says it is giving +25. This is for both this and the regular Guardian wind.

 

<SpellDef InternalName="GuardianWind_Adept">
<DisplayName>Guardian Wind</DisplayName>
<Description>Allied units gain +15 to Dodge (+5 per air shard) vs ranged attacks.</Description>
<FormattedDescription>Allied units gain +%d to Dodge vs ranged attacks.</FormattedDescription>
<Image>T_Windshield_Painting.png</Image>
<IconFG>T_GuardianWind_Icon.png</IconFG>
<AutoUnlock>1</AutoUnlock>
<SpellBookSortCategory>Unit</SpellBookSortCategory>
<SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
<SpellType>Tactical</SpellType>
<SpellClass>Defensive</SpellClass>
<SpellSubClass>Buff</SpellSubClass>
<SpellTargetType>AllFriendlyUnits</SpellTargetType>
<Prereq>
<Type>AbilityBonusOption</Type>
<Attribute>AirAdept2</Attribute>
</Prereq>
<SpellResourceCost>
<Resource>Mana</Resource>
<Amount>4</Amount>
</SpellResourceCost>
<GameModifier>
<ModType>Unit</ModType>
<Attribute>AdjustUnitStat</Attribute>
<StrVal>UnitStat_DodgeAgainstRanged</StrVal>
<IsForFormattedDescription>1</IsForFormattedDescription>
<DisplayName>Shielded</DisplayName>
<Duration>-1</Duration>
<Effect>E_GuardianWind_Particle</Effect>
<Calculate InternalName="Calc" ValueOwner="CastingUnit">
<Expression><![CDATA[[UnitOwner_GetNumAirShards] * 5]]></Expression>
</Calculate>
<Calculate InternalName="Value">
<Expression><![CDATA[[Calc] + 25]]></Expression>
</Calculate>
<Calculate InternalName="ValueForFormattedDescription">
<Expression><![CDATA[[Calc] + 25]]></Expression>
</Calculate>
</GameModifier>
<AIData AIPersonality="AI_General">

4,260 views 1 replies
Reply #1 Top

Guess I will just post it here, another error in your code

 

Says should be doing lightning damage of 4 but the code says 2

<SpellDef InternalName="StaticBlast">
<DisplayName>Static Blast</DisplayName>
<Description>Lightning strikes a random enemy for 4 Lightning damage (+1 per level).</Description>
<FormattedDescription>Lightning strikes a random enemy for %d Lightning damage.</FormattedDescription>
<IconFG>Ability_StaticBlast_Icon.png</IconFG>

<SpellBookSortCategory>Unit</SpellBookSortCategory>
<SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
<SpellType>Tactical</SpellType>
<SpellClass>Offensive</SpellClass>
<SpellSubClass>Damage</SpellSubClass>
<SpellTargetType>RandomEnemyUnit</SpellTargetType>
<HideInHiergamenon>1</HideInHiergamenon>
<IsResistable>1</IsResistable>
<IsSpecialAbility>1</IsSpecialAbility>
<GameModifier>
<ModType>Unit</ModType>
<Attribute>DefendableDamage</Attribute>
<AttackStat>UnitStat_Attack_Lightning</AttackStat>
<IsForFormattedDescription>1</IsForFormattedDescription>
<Calculate InternalName="Calc" ValueOwner="CastingUnit">
<Expression><![CDATA[[Unit_GetLevel]]]></Expression>
</Calculate>
<Calculate InternalName="Value">
<Expression><![CDATA[[Calc] + 2]]></Expression>
</Calculate>
<Calculate InternalName="ValueForFormattedDescription">
<Expression><![CDATA[[Calc] + 2]]></Expression>
</Calculate>
</GameModifier>