[1.08b] Unit special ability fix

I'm posting an XML file here that you can add to your /Mods directory to fix the unit special damage abilities that were causing CTD's.  If you try this out and still have problems with specific units, please PM me or reply on here and I'll take a look at it.  So far most of the problems were due to just a few things and could be either fixed outright or worked around.

Hopefully this gets many of you past the problems we've all been seeing!

Note:  This takes the 3 separate fixes I've posted in this forum elsewhere and put them into one file to make an update easier.

Code: xml
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <Spells>
  3.  <DataChecksum NoParse="1">
  4.   <Ignore>DisplayName,Description,IconFG,IconBG,IconColor,SoundFX,ParticleEffect,EffectScale</Ignore>
  5.   <Translate>DisplayName,Description</Translate>
  6.  </DataChecksum>
  7.   <SpellDef InternalName="FlameStrike">
  8.     <DisplayName>Flame Strike</DisplayName>
  9.     <Description>Target enemy is lashed with fierce flames and takes your attack strength in damage.</Description>
  10.     <Image>WaterCrystal_Medallion.png</Image>
  11.     <IconFG>Flame_Strike.png</IconFG>
  12.     <IconColor>32,45,243</IconColor>
  13.     <Range>-1</Range>
  14.     <SoundFX>Spell_FireBolt_01</SoundFX>
  15.     <ManaCost>3.0</ManaCost>
  16.     <SpellLevel>1</SpellLevel>
  17.     <SpellType>Tactical</SpellType>
  18.     <SpellClass>Offensive</SpellClass>
  19.     <SpellTargetType>EnemyUnit</SpellTargetType>
  20.     <IsSpecialAbility>1</IsSpecialAbility>
  21.     <GameModifier InternalName="FlameStrikeModifier">
  22.       <ModType>Unit</ModType>
  23.       <Attribute>DefendableDamage</Attribute>
  24.       <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
  25.         <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
  26.       </Calculate>
  27.       <Calculate InternalName="MaxValue">
  28.         <Expression><![CDATA[[AttackerAttack] * -1]]></Expression>
  29.       </Calculate>
  30.       <Calculate InternalName="MinValue">
  31.         <Expression><![CDATA[[AttackerAttack] * -0.1]]></Expression>
  32.       </Calculate>
  33.     </GameModifier>
  34.     <SpellDefEffect>
  35.       <EffectName>Fire_Bolt</EffectName>
  36.       <LocalPosition>0,0,0</LocalPosition>
  37.       <EffectScale>1.5</EffectScale>
  38.       <EffectDelay>0.25</EffectDelay>
  39.       <SnapToTerrain>1</SnapToTerrain>
  40.     </SpellDefEffect>
  41.   </SpellDef>
  42.  
  43.   <SpellDef InternalName="DeadlyBite">
  44.     <DisplayName>Deadly Bite</DisplayName>
  45.     <Description>A devastating bite that deals twice your attack strength in damage.</Description>
  46.     <Image>WaterCrystal_Medallion.png</Image>
  47.     <IconFG>Deadly_Bite.png</IconFG>
  48.     <IconColor>32,45,243</IconColor>
  49.     <Range>1</Range>
  50.     <SoundFX>LargeSpider_Hit1</SoundFX>
  51.     <ManaCost>3.0</ManaCost>
  52.     <SpellLevel>1</SpellLevel>
  53.     <SpellType>Tactical</SpellType>
  54.     <SpellClass>Offensive</SpellClass>
  55.     <SpellTargetType>EnemyUnit</SpellTargetType>
  56.     <IsSpecialAbility>1</IsSpecialAbility>
  57.     <GameModifier InternalName="DeadlyBiteModifier">
  58.       <ModType>Unit</ModType>
  59.       <Attribute>DefendableDamage</Attribute>
  60.       <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
  61.         <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
  62.       </Calculate>
  63.       <Calculate InternalName="MaxValue">
  64.         <Expression><![CDATA[[AttackerAttack] * -2]]></Expression>
  65.       </Calculate>
  66.       <Calculate InternalName="MinValue">
  67.         <Expression><![CDATA[[AttackerAttack] * -0.1]]></Expression>
  68.       </Calculate>
  69.     </GameModifier>
  70.     <SpellDefEffect>
  71.       <EffectName>Deadly_Bite</EffectName>
  72.       <LocalPosition>0,0,0</LocalPosition>
  73.       <EffectScale>1.0</EffectScale>
  74.       <EffectDelay>0.0</EffectDelay>
  75.       <SnapToTerrain>1</SnapToTerrain>
  76.     </SpellDefEffect>
  77.   </SpellDef>
  78.   <SpellDef InternalName="CrushingBlow">
  79.     <DisplayName>Crushing Blow</DisplayName>
  80.     <Description>Target is struck with a powerful blow that cannot miss and deals the attacker's full attack damage.</Description>
  81.     <Image>WaterCrystal_Medallion.png</Image>
  82.     <IconFG>Crushing_Blow.png</IconFG>
  83.     <IconColor>32,45,243</IconColor>
  84.     <Range>1</Range>
  85.     <SoundFX>Hit_Hammer1</SoundFX>
  86.     <ManaCost>3.0</ManaCost>
  87.     <SpellLevel>1</SpellLevel>
  88.     <SpellType>Tactical</SpellType>
  89.     <SpellClass>Offensive</SpellClass>
  90.     <SpellTargetType>EnemyUnit</SpellTargetType>
  91.     <IsSpecialAbility>1</IsSpecialAbility>
  92.     <GameModifier InternalName="CrushingBlowModifier">
  93.       <ModType>Unit</ModType>
  94.       <Attribute>CurHealth</Attribute>
  95.       <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
  96.         <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
  97.       </Calculate>
  98.       <Calculate InternalName="Value">
  99.         <Expression><![CDATA[[AttackerAttack] * -1.0]]></Expression>
  100.       </Calculate>
  101.     </GameModifier>
  102.     <SpellDefEffect>
  103.       <EffectName>Crushing_Blow</EffectName>
  104.       <LocalPosition>0,0,0</LocalPosition>
  105.       <EffectScale>1.5</EffectScale>
  106.       <EffectDelay>0.25</EffectDelay>
  107.       <SnapToTerrain>1</SnapToTerrain>
  108.     </SpellDefEffect>
  109.   </SpellDef>
  110.   <SpellDef InternalName="RainOfStone">
  111.     <DisplayName>Rain of Stone</DisplayName>
  112.     <Description>Stones rain down on target tile. Enemy units take 2X your attack strength in damage.</Description>
  113.     <Image>FireCrystal_Medallion.png</Image>
  114.     <IconFG>Rain_of_Stone.png</IconFG>
  115.     <IconBG>fire1_BG.png</IconBG>
  116.     <IconColor>243,45,32</IconColor>
  117.     <Range>-1</Range>
  118.     <Radius>1</Radius>
  119.     <SoundFX>Spell_EnchantLand_02</SoundFX>
  120.     <ManaCost>3.0</ManaCost>
  121.     <SpellLevel>3</SpellLevel>
  122.     <SpellType>Tactical</SpellType>
  123.     <SpellClass>Offensive</SpellClass>
  124.     <SpellTargetType>EnemyUnit</SpellTargetType>
  125.     <IsSpecialAbility>1</IsSpecialAbility>
  126.     <GameModifier InternalName="RainOfStoneModifier">
  127.       <ModType>Unit</ModType>
  128.       <Attribute>DefendableDamage</Attribute>
  129.       <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
  130.         <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
  131.       </Calculate>
  132.       <Calculate InternalName="MaxValue">
  133.         <Expression><![CDATA[[AttackerAttack] * -2]]></Expression>
  134.       </Calculate>
  135.       <Calculate InternalName="MinValue">
  136.         <Expression><![CDATA[[AttackerAttack] * -0.1]]></Expression>
  137.       </Calculate>
  138.     </GameModifier>
  139.     <SpellDefEffect>
  140.       <EffectName>Rain_of_Stone</EffectName>
  141.       <LocalPosition>0,0,0</LocalPosition>
  142.       <EffectScale>1.6</EffectScale>
  143.       <EffectDelay>0.0</EffectDelay>
  144.       <SnapToTerrain>1</SnapToTerrain>
  145.     </SpellDefEffect>
  146.   </SpellDef>
  147.   <SpellDef InternalName="SavageStrike">
  148.     <DisplayName>Savage Strike</DisplayName>
  149.     <Description>Target enemy is dealt a heavy blow and takes 3X your attack strength in damage.</Description>
  150.     <Image>WaterCrystal_Medallion.png</Image>
  151.     <IconFG>Savage_Strike.png</IconFG>
  152.     <IconColor>32,45,243</IconColor>
  153.     <Range>1</Range>
  154.     <SoundFX>Hit_Hammer1</SoundFX>
  155.     <ManaCost>3.0</ManaCost>
  156.     <SpellLevel>1</SpellLevel>
  157.     <SpellType>Tactical</SpellType>
  158.     <SpellClass>Offensive</SpellClass>
  159.     <SpellTargetType>EnemyUnit</SpellTargetType>
  160.     <IsSpecialAbility>1</IsSpecialAbility>
  161.     <GameModifier InternalName="SavageStrikeModifier">
  162.       <ModType>Unit</ModType>
  163.       <Attribute>DefendableDamage</Attribute>
  164.       <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
  165.         <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
  166.       </Calculate>
  167.       <Calculate InternalName="Value">
  168.         <Expression><![CDATA[[AttackerAttack] * -3.0]]></Expression>
  169.       </Calculate>
  170.     </GameModifier>
  171.     <SpellDefEffect>
  172.       <EffectName>Savage_Strike</EffectName>
  173.       <LocalPosition>0,0,0</LocalPosition>
  174.       <EffectScale>1.5</EffectScale>
  175.       <EffectDelay>0.25</EffectDelay>
  176.       <SnapToTerrain>1</SnapToTerrain>
  177.     </SpellDefEffect>
  178.   </SpellDef>
  179.   <SpellDef InternalName="Hurricane">
  180.     <DisplayName>Hurricane</DisplayName>
  181.     <Description>Target enemy is blown to a random unoccupied tile by a mighty hurricane.</Description>
  182.     <Image>WaterCrystal_Medallion.png</Image>
  183.     <IconFG>Hurricane.png</IconFG>
  184.     <IconColor>32,45,243</IconColor>
  185.     <Range>-1</Range>
  186.     <SoundFX>Spell_Wind_01</SoundFX>
  187.     <ManaCost>3.0</ManaCost>
  188.     <SpellLevel>5</SpellLevel>
  189.     <SpellType>Tactical</SpellType>
  190.     <SpellClass>Offensive</SpellClass>
  191.     <SpellTargetType>EnemyUnit</SpellTargetType>
  192.     <IsSpecialAbility>1</IsSpecialAbility>
  193.     <GameModifier InternalName="HurricaneMoveModifier">
  194.       <ModType>TacticalUnit</ModType>
  195.       <Attribute>ChanceToMoveTargetToRandomTile</Attribute>
  196.       <Value>1</Value>
  197.     </GameModifier>
  198.     <GameModifier InternalName="HurricaneDamageModifier">
  199.       <ModType>Unit</ModType>
  200.       <Attribute>DefendableDamage</Attribute>
  201.       <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
  202.         <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
  203.       </Calculate>
  204.       <Calculate InternalName="Value">
  205.         <Expression><![CDATA[[AttackerAttack] * -0.5]]></Expression>
  206.       </Calculate>
  207.     </GameModifier>
  208.     <SpellDefEffect>
  209.       <EffectName>Confusion</EffectName>
  210.       <LocalPosition>0,0,0</LocalPosition>
  211.       <EffectScale>1.5</EffectScale>
  212.       <EffectDelay>0.25</EffectDelay>
  213.       <SnapToTerrain>1</SnapToTerrain>
  214.     </SpellDefEffect>
  215.   </SpellDef>
  216.   <SpellDef InternalName="Backstab">
  217.     <DisplayName>Backstab</DisplayName>
  218.     <Description>Target enemy strikes all adjacent enemies, dealing .5X its attack strength in true damage.</Description>
  219.     <Image>WaterCrystal_Medallion.png</Image>
  220.     <IconFG>Backstab.png</IconFG>
  221.     <IconColor>32,45,243</IconColor>
  222.     <Range>0</Range>
  223.     <Radius>1</Radius>
  224.     <SoundFX>Hit_BasicSword2</SoundFX>
  225.     <ManaCost>3.0</ManaCost>
  226.     <SpellLevel>1</SpellLevel>
  227.     <SpellType>Tactical</SpellType>
  228.     <SpellClass>Offensive</SpellClass>
  229.     <SpellTargetType>EnemyUnitIgnoreFriendly</SpellTargetType>
  230.     <IsSpecialAbility>1</IsSpecialAbility>
  231.     <GameModifier InternalName="BackstabModifier">
  232.       <ModType>Unit</ModType>
  233.       <Attribute>CurHealth</Attribute>
  234.       <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
  235.         <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
  236.       </Calculate>
  237.       <Calculate InternalName="Value">
  238.         <Expression><![CDATA[[AttackerAttack] * -0.5]]></Expression>
  239.       </Calculate>
  240.     </GameModifier>
  241.     <SpellDefEffect>
  242.       <EffectName>Backstab</EffectName>
  243.       <LocalPosition>0,35,0</LocalPosition>
  244.       <EffectScale>0.65</EffectScale>
  245.       <EffectDelay>0.0</EffectDelay>
  246.       <SnapToTerrain>1</SnapToTerrain>
  247.       <PlayOnAllTargets>1</PlayOnAllTargets>
  248.     </SpellDefEffect>
  249.   </SpellDef>
  250. </Spells>

6,035 views 10 replies
Reply #1 Top

If this works man, you will have made me very very happy

Reply #2 Top

:)  One thing I did forget to mention is that due to how Elemental saves games, you will have to start a new game for the fix to work.  I don't believe saved games will pull these changes in unfortunately :(

Reply #3 Top

Alright I don't have a mods directory that I can see where do I need to creat it and how should I name this XML file?

Reply #4 Top

Should my XML file have numbers going down the side like in your code there or just the code itself?

Reply #5 Top

Make sure you have the use mods option turned on in the game first.  Then exit back out.

A directory at .../Stardock Games/Elemental/Mods should have been created.  If not, make it yourself.

The name of the XML file doesn't really matter, so you can use something like 'fix_1_08_CTD_Abilities.xml'.  Then cut and past the XML I have listed above into it.

After that you can restart the game and it should automatically include the fixes.  You'll also want the bow fix which you can get from Heavenfall's bugfix mod in the mods section of these forums.

EDIT:  Just the code itself.  The numbers are something included from the posting format.

Reply #7 Top

Any way to get a version w/o numbers? I am deleting the numbers takles a long time but I am accidently deleting other stuff, so I have restarted deleting numbers like 3 times out of paranoia I deleted an important line of code

Reply #8 Top

Let me see if this works instead:

<?xml version="1.0" encoding="iso-8859-1"?>

<Spells>
 <DataChecksum NoParse="1">
  <Ignore>DisplayName,Description,IconFG,IconBG,IconColor,SoundFX,ParticleEffect,EffectScale</Ignore>
  <Translate>DisplayName,Description</Translate>
 </DataChecksum>

  <SpellDef InternalName="FlameStrike">
    <DisplayName>Flame Strike</DisplayName>
    <Description>Target enemy is lashed with fierce flames and takes your attack strength in damage.</Description>
    <Image>WaterCrystal_Medallion.png</Image>
    <IconFG>Flame_Strike.png</IconFG>
    <IconColor>32,45,243</IconColor>
    <Range>-1</Range>
    <SoundFX>Spell_FireBolt_01</SoundFX>
    <ManaCost>3.0</ManaCost>
    <SpellLevel>1</SpellLevel>
    <SpellType>Tactical</SpellType>
    <SpellClass>Offensive</SpellClass>
    <SpellTargetType>EnemyUnit</SpellTargetType>
    <IsSpecialAbility>1</IsSpecialAbility>
    <GameModifier InternalName="FlameStrikeModifier">
      <ModType>Unit</ModType>
      <Attribute>DefendableDamage</Attribute>
      <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
        <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
      </Calculate>
      <Calculate InternalName="MaxValue">
        <Expression><![CDATA[[AttackerAttack] * -1]]></Expression>
      </Calculate>
      <Calculate InternalName="MinValue">
        <Expression><![CDATA[[AttackerAttack] * -0.1]]></Expression>
      </Calculate>
    </GameModifier>
    <SpellDefEffect>
      <EffectName>Fire_Bolt</EffectName>
      <LocalPosition>0,0,0</LocalPosition>
      <EffectScale>1.5</EffectScale>
      <EffectDelay>0.25</EffectDelay>
      <SnapToTerrain>1</SnapToTerrain>
    </SpellDefEffect>
  </SpellDef>
 
  <SpellDef InternalName="DeadlyBite">
    <DisplayName>Deadly Bite</DisplayName>
    <Description>A devastating bite that deals twice your attack strength in damage.</Description>
    <Image>WaterCrystal_Medallion.png</Image>
    <IconFG>Deadly_Bite.png</IconFG>
    <IconColor>32,45,243</IconColor>
    <Range>1</Range>
    <SoundFX>LargeSpider_Hit1</SoundFX>
    <ManaCost>3.0</ManaCost>
    <SpellLevel>1</SpellLevel>
    <SpellType>Tactical</SpellType>
    <SpellClass>Offensive</SpellClass>
    <SpellTargetType>EnemyUnit</SpellTargetType>
    <IsSpecialAbility>1</IsSpecialAbility>
    <GameModifier InternalName="DeadlyBiteModifier">
      <ModType>Unit</ModType>
      <Attribute>DefendableDamage</Attribute>
      <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
        <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
      </Calculate>
      <Calculate InternalName="MaxValue">
        <Expression><![CDATA[[AttackerAttack] * -2]]></Expression>
      </Calculate>
      <Calculate InternalName="MinValue">
        <Expression><![CDATA[[AttackerAttack] * -0.1]]></Expression>
      </Calculate>
    </GameModifier>
    <SpellDefEffect>
      <EffectName>Deadly_Bite</EffectName>
      <LocalPosition>0,0,0</LocalPosition>
      <EffectScale>1.0</EffectScale>
      <EffectDelay>0.0</EffectDelay>
      <SnapToTerrain>1</SnapToTerrain>
    </SpellDefEffect>
  </SpellDef>

  <SpellDef InternalName="CrushingBlow">
    <DisplayName>Crushing Blow</DisplayName>
    <Description>Target is struck with a powerful blow that cannot miss and deals the attacker's full attack damage.</Description>
    <Image>WaterCrystal_Medallion.png</Image>
    <IconFG>Crushing_Blow.png</IconFG>
    <IconColor>32,45,243</IconColor>
    <Range>1</Range>
    <SoundFX>Hit_Hammer1</SoundFX>
    <ManaCost>3.0</ManaCost>
    <SpellLevel>1</SpellLevel>
    <SpellType>Tactical</SpellType>
    <SpellClass>Offensive</SpellClass>
    <SpellTargetType>EnemyUnit</SpellTargetType>
    <IsSpecialAbility>1</IsSpecialAbility>
    <GameModifier InternalName="CrushingBlowModifier">
      <ModType>Unit</ModType>
      <Attribute>CurHealth</Attribute>
      <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
        <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
      </Calculate>
      <Calculate InternalName="Value">
        <Expression><![CDATA[[AttackerAttack] * -1.0]]></Expression>
      </Calculate>
    </GameModifier>
    <SpellDefEffect>
      <EffectName>Crushing_Blow</EffectName>
      <LocalPosition>0,0,0</LocalPosition>
      <EffectScale>1.5</EffectScale>
      <EffectDelay>0.25</EffectDelay>
      <SnapToTerrain>1</SnapToTerrain>
    </SpellDefEffect>
  </SpellDef>

  <SpellDef InternalName="RainOfStone">
    <DisplayName>Rain of Stone</DisplayName>
    <Description>Stones rain down on target tile. Enemy units take 2X your attack strength in damage.</Description>
    <Image>FireCrystal_Medallion.png</Image>
    <IconFG>Rain_of_Stone.png</IconFG>
    <IconBG>fire1_BG.png</IconBG>
    <IconColor>243,45,32</IconColor>
    <Range>-1</Range>
    <Radius>1</Radius>
    <SoundFX>Spell_EnchantLand_02</SoundFX>
    <ManaCost>3.0</ManaCost>
    <SpellLevel>3</SpellLevel>
    <SpellType>Tactical</SpellType>
    <SpellClass>Offensive</SpellClass>
    <SpellTargetType>EnemyUnit</SpellTargetType>
    <IsSpecialAbility>1</IsSpecialAbility>
    <GameModifier InternalName="RainOfStoneModifier">
      <ModType>Unit</ModType>
      <Attribute>DefendableDamage</Attribute>
      <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
        <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
      </Calculate>
      <Calculate InternalName="MaxValue">
        <Expression><![CDATA[[AttackerAttack] * -2]]></Expression>
      </Calculate>
      <Calculate InternalName="MinValue">
        <Expression><![CDATA[[AttackerAttack] * -0.1]]></Expression>
      </Calculate>
    </GameModifier>
    <SpellDefEffect>
      <EffectName>Rain_of_Stone</EffectName>
      <LocalPosition>0,0,0</LocalPosition>
      <EffectScale>1.6</EffectScale>
      <EffectDelay>0.0</EffectDelay>
      <SnapToTerrain>1</SnapToTerrain>
    </SpellDefEffect>
  </SpellDef>

  <SpellDef InternalName="SavageStrike">
    <DisplayName>Savage Strike</DisplayName>
    <Description>Target enemy is dealt a heavy blow and takes 3X your attack strength in damage.</Description>
    <Image>WaterCrystal_Medallion.png</Image>
    <IconFG>Savage_Strike.png</IconFG>
    <IconColor>32,45,243</IconColor>
    <Range>1</Range>
    <SoundFX>Hit_Hammer1</SoundFX>
    <ManaCost>3.0</ManaCost>
    <SpellLevel>1</SpellLevel>
    <SpellType>Tactical</SpellType>
    <SpellClass>Offensive</SpellClass>
    <SpellTargetType>EnemyUnit</SpellTargetType>
    <IsSpecialAbility>1</IsSpecialAbility>
    <GameModifier InternalName="SavageStrikeModifier">
      <ModType>Unit</ModType>
      <Attribute>DefendableDamage</Attribute>
      <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
        <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
      </Calculate>
      <Calculate InternalName="Value">
        <Expression><![CDATA[[AttackerAttack] * -3.0]]></Expression>
      </Calculate>
    </GameModifier>
    <SpellDefEffect>
      <EffectName>Savage_Strike</EffectName>
      <LocalPosition>0,0,0</LocalPosition>
      <EffectScale>1.5</EffectScale>
      <EffectDelay>0.25</EffectDelay>
      <SnapToTerrain>1</SnapToTerrain>
    </SpellDefEffect>
  </SpellDef>

  <SpellDef InternalName="Hurricane">
    <DisplayName>Hurricane</DisplayName>
    <Description>Target enemy is blown to a random unoccupied tile by a mighty hurricane.</Description>
    <Image>WaterCrystal_Medallion.png</Image>
    <IconFG>Hurricane.png</IconFG>
    <IconColor>32,45,243</IconColor>
    <Range>-1</Range>
    <SoundFX>Spell_Wind_01</SoundFX>
    <ManaCost>3.0</ManaCost>
    <SpellLevel>5</SpellLevel>
    <SpellType>Tactical</SpellType>
    <SpellClass>Offensive</SpellClass>
    <SpellTargetType>EnemyUnit</SpellTargetType>
    <IsSpecialAbility>1</IsSpecialAbility>
    <GameModifier InternalName="HurricaneMoveModifier">
      <ModType>TacticalUnit</ModType>
      <Attribute>ChanceToMoveTargetToRandomTile</Attribute>
      <Value>1</Value>
    </GameModifier>
    <GameModifier InternalName="HurricaneDamageModifier">
      <ModType>Unit</ModType>
      <Attribute>DefendableDamage</Attribute>
      <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
        <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
      </Calculate>
      <Calculate InternalName="Value">
        <Expression><![CDATA[[AttackerAttack] * -0.5]]></Expression>
      </Calculate>
    </GameModifier>
    <SpellDefEffect>
      <EffectName>Confusion</EffectName>
      <LocalPosition>0,0,0</LocalPosition>
      <EffectScale>1.5</EffectScale>
      <EffectDelay>0.25</EffectDelay>
      <SnapToTerrain>1</SnapToTerrain>
    </SpellDefEffect>
  </SpellDef>

  <SpellDef InternalName="Backstab">
    <DisplayName>Backstab</DisplayName>
    <Description>Target enemy strikes all adjacent enemies, dealing .5X its attack strength in true damage.</Description>
    <Image>WaterCrystal_Medallion.png</Image>
    <IconFG>Backstab.png</IconFG>
    <IconColor>32,45,243</IconColor>
    <Range>0</Range>
    <Radius>1</Radius>
    <SoundFX>Hit_BasicSword2</SoundFX>
    <ManaCost>3.0</ManaCost>
    <SpellLevel>1</SpellLevel>
    <SpellType>Tactical</SpellType>
    <SpellClass>Offensive</SpellClass>
    <SpellTargetType>EnemyUnitIgnoreFriendly</SpellTargetType>
    <IsSpecialAbility>1</IsSpecialAbility>
    <GameModifier InternalName="BackstabModifier">
      <ModType>Unit</ModType>
      <Attribute>CurHealth</Attribute>
      <Calculate InternalName="AttackerAttack" ValueOwner="CastingUnit">
        <Expression><![CDATA[[UnitStat_Attack]]]></Expression>
      </Calculate>
      <Calculate InternalName="Value">
        <Expression><![CDATA[[AttackerAttack] * -0.5]]></Expression>
      </Calculate>
    </GameModifier>
    <SpellDefEffect>
      <EffectName>Backstab</EffectName>
      <LocalPosition>0,35,0</LocalPosition>
      <EffectScale>0.65</EffectScale>
      <EffectDelay>0.0</EffectDelay>
      <SnapToTerrain>1</SnapToTerrain>
      <PlayOnAllTargets>1</PlayOnAllTargets>
    </SpellDefEffect>
  </SpellDef>
</Spells>

 

Reply #9 Top

Thanks man, I guess I just wasted my time deleting all those numbers hehe. I will try this in game now. I included the XML file I made using your code for people who just want to D/L and drop in the mods directory.

 

I made an XML file(I deleted all those numbers lol)

 

http://filebin.ca/owjfbg/CTD_FIXER.xml

Reply #10 Top

Thanks for finding the fixes for this one, guys...was an accidental merge on our end. However, there is now an hotfix available (v1.08.037) that will fix these issues, along with:

+ always-missing bows
+ cur-mana values not being correct post battle

Note that previous saved games will still have the 'always-miss' bow issue, but the ability crashes will be gone. Also, if you have the private MP build, you will have to uninstall and reinstall to see the newest build. We will have a new MP build up on Monday with these changes.