What is supposed to happen: you get an elemental damage boost that gradually fades at different rates for each damage type. It does fade as intended, but the buggy portion is this:
each round the spells lasts ADDS a permanent +1 fire damage, which accumulates.
very odd. The spell has no requirements for testing purposes. The additional test of this spell wsa to check if seperate spell elements could have different durations, and observing the particle effects from round to round.
Code: xml
-
- <SpellDef InternalName="EnchantedWeapon_Tactical">
- <DisplayName>Enchanted Weapon</DisplayName>
- <Description>Enchanted champion's weapon does extra damage.</Description>
- <FormattedDescription>Enchanted champion's weapon does 1 fire, 2 cold, 3 electric.</FormattedDescription>
- <Image>S_BurningBlade_Painting.png</Image>
- <IconFG>S_BurningBlade_Icon.png</IconFG>
- <IconBG>S_BurningBlade_Icon_BG.png</IconBG>
- <IconColor>255,158,6</IconColor>
- <AutoUnlock>1</AutoUnlock>
- <CanStack>0</CanStack>
- <SpellBookSortCategory>Unit</SpellBookSortCategory>
- <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
- <SpellType>Tactical</SpellType>
- <SpellClass>Defensive</SpellClass>
- <SpellSubClass>Buff</SpellSubClass>
- <SpellTargetType>FriendlyUnit</SpellTargetType>
- <HideInHiergamenon>1</HideInHiergamenon>
- <PreventStackingWith>BurningBlade</PreventStackingWith>
- <SpellResourceCost>
- <Resource>Mana</Resource>
- <Amount>7</Amount>
- </SpellResourceCost>
- <GameModifier>
- <ModType>Unit</ModType>
- <Attribute>AdjustUnitStat</Attribute>
- <StrVal>UnitStat_Attack_Fire</StrVal>
- <Duration>4</Duration>
- <Value>1</Value>
- <DisplayName>Enchanted Weapon</DisplayName>
- <Duration>3</Duration>
- <Effect>S_BurningBlade_Particle</Effect>
- <PerTurn>1</PerTurn>
- </GameModifier>
- <GameModifier>
- <ModType>Unit</ModType>
- <Attribute>AdjustUnitStat</Attribute>
- <StrVal>UnitStat_Attack_Cold</StrVal>
- <Duration>3</Duration>
- <Value>2</Value>
- </GameModifier>
- <GameModifier>
- <ModType>Unit</ModType>
- <Attribute>AdjustUnitStat</Attribute>
- <StrVal>UnitStat_Attack_lightning</StrVal>
- <Duration>2</Duration>
- <Value>3</Value>
- </GameModifier>
- <AIData AIPersonality="AI_General">
- <AIPriority>50</AIPriority>
- <ValueCalcWrapper>
- <ValueType>IsTargetWorthy</ValueType>
- <Calculate InternalName="Calc" ValueOwner="TargetUnit">
- <Expression><![CDATA[[Unit_GetHPCurrent]]]></Expression>
- </Calculate>
- <Calculate InternalName="Value">
- <Expression><![CDATA[[Calc] > 10]]></Expression>
- </Calculate>
- </ValueCalcWrapper>
- </AIData>
- <HitSoundFX>Spell_BurningBlade_01</HitSoundFX>
- <SpellDefEffect>
- <EffectName>S_BurningBlade_Particle</EffectName>
- <LocalPosition>0,0,0</LocalPosition>
- <EffectScale>0.75</EffectScale>
- <EffectDelay>0.25</EffectDelay>
- <SnapToTerrain>1</SnapToTerrain>
- </SpellDefEffect>
- </SpellDef>