<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Created with the Elemental Editor -->
<!-- CoreSpells.xml -->
<!-- -->
<Spells>
    <DataChecksum NoParse="1">
        <Ignore>DisplayName</Ignore>
        <Translate>DisplayName</Translate>
    </DataChecksum>
    <SpellDef InternalName="Aid">
        <DisplayName>Aid</DisplayName>
        <Description>Heals target unit by 8 (+2 per life shard).</Description>
        <FormattedDescription>Heals target unit by %d.</FormattedDescription>
        <Image>T_Heal_Painting.png</Image>
        <IconFG>T_Aid_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Heal</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Heal</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>LifeAdept1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>8</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumLifeShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_BonusHealing]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        <ValueCalcWrapper>
            <ValueType>IsTargetWorthy</ValueType>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetHPCurrent]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] < 30]]></Expression>
            </Calculate>
        </ValueCalcWrapper>
        </AIData>
        <HitSoundFX>Spell_Heal_01</HitSoundFX>
        <HitSoundFX>Spell_Heal_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Heal_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Alchemy">
        <DisplayName>Alchemy</DisplayName>
        <Description>Convert 100 mana into 100 gildar.</Description>
        <Image>S_Alchemy_Painting.png</Image>
        <IconFG>S_Alchemy_Icon.png</IconFG>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Other</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>100</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Gold</Attribute>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Alchemy_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Alchemy_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="AnointedByFire">
        <DisplayName>Anointed by Fire</DisplayName>
        <Description>Allows the targeted Champion to be able to cast Fireball.</Description>
        <Image>S_AnnointedByFire_Painting.png</Image>
        <IconFG>S_AnnointedByFire_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <UniqueSpellUnlock>Fireball</UniqueSpellUnlock>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>50</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>UnlockSpell</Attribute>
            <StrVal>Fireball</StrVal>
            <Duration>-1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>50</AIPriority>
        </AIData>
        <HitSoundFX>Spell_MantleOfFire_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_MantleofFire_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Antipathy">
        <DisplayName>Antipathy</DisplayName>
        <Description>Increases Unrest in the target city by 10%.</Description>
        <Image>S_Antipathy_Painting.png</Image>
        <IconFG>S_Antipathy_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityCurse</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Unrest</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>10</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Antipathy_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Blight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ArcaneForge">
        <DisplayName>Arcane Forge</DisplayName>
        <Description>Adds +1 Material per Essence to the city</Description>
        <Image>S_Inspiration_Painting.png</Image>
        <IconFG>S_ArcaneForge_Icon.png</IconFG>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>100</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>TileYieldMaterials</Attribute>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <PerTurn>1</PerTurn>
            <Value>1</Value>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[TileYieldEssence]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>120</AIPriority>
        </AIData>
        <HitSoundFX>Spell_EnchantedHammers_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_AuraofMight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ArcaneMonolith">
        <DisplayName>Arcane Monolith</DisplayName>
        <Description>Creates an Arcane Monolith on the map which extends your Zone of Control.</Description>
        <Image>S_ArcaneMonolith_Painting.png</Image>
        <IconFG>S_ArcaneMonolith_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Terraform</SpellClass>
        <SpellSubClass>BuildOutpost</SpellSubClass>
        <SpellTargetType>NeutralGround</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>50</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>BuildWildImprovement</Attribute>
            <StrVal>Outpost_ArcaneMonolith</StrVal>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ArcaneMonolith_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_AuraofGrace_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ArcaneVeil">
        <DisplayName>Arcane Veil</DisplayName>
        <Description>This unit resists all spells.</Description>
        <Image>S_MantleofOceans_Painting.png</Image>
        <IconFG>T_ArcaneVeil_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Spell_ArcaneVeil</Attribute>
        </Prereq>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_MagicResist</StrVal>
            <Duration>-1</Duration>
            <Effect>E_MantleOfOceans_Particle</Effect>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <HitSoundFX>Spell_MantleOfOceans_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_MantleofOceans_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ArchingShieldBash">
        <DisplayName>Arching Shield Bash</DisplayName>
        <Description>Launch an Attack for normal damage and knock three adjacent victims back 1 tile.</Description>
        <FormattedDescription>Launch a %d Attack and knock three adjacent victims back 1 tile.</FormattedDescription>
        <IconFG>Ability_ArchingShieldBash_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <RadiusType>ADJACENT</RadiusType>
        <Range>1</Range>
        <Prereq>
            <Type>UnitStat</Type>
            <Attribute>UnitStat_IsShield</Attribute>
            <Value>1</Value>
        </Prereq>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetMovesBack</Attribute>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
            <AIMinSpellTargets>2</AIMinSpellTargets>
        </AIData>
        <CasterAnimationType>32</CasterAnimationType>
        <HitSoundFX>Ability_Shield_Bash</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Ability_ShieldBash_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.25</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="AuraOfGrace">
        <DisplayName>Aura of Grace</DisplayName>
        <Description>All units trained in this city are +1 Initiative per Essence.</Description>
        <Image>S_AuraofGrace_Painting.png</Image>
        <IconFG>S_AuraofGrace_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Other</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Air2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>CityTrainingBonus</ModType>
            <Attribute>TrainingBonus_ApplyUnitModifier_Add</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[TileYieldEssence]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>3</AIPriority>
        </AIData>
        <HitSoundFX>Spell_AuraOfGrace_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_AuraofGrace_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="AuraOfMight">
        <DisplayName>Aura of Might</DisplayName>
        <Description>All units trained in this city are +1 Defense per Essence.</Description>
        <Image>S_AuraofMight_Painting.png</Image>
        <IconFG>S_AuraofMight_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Other</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>CityTrainingBonus</ModType>
            <Attribute>TrainingBonus_ApplyUnitModifier_Add</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[TileYieldEssence]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_AuraOfMight_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_AuraofMight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="AuraOfVitality">
        <DisplayName>Aura of Vitality</DisplayName>
        <Description>All units trained in this city are +1 Hit Points per Essence.</Description>
        <Image>S_AuraofVitality_Painting.png</Image>
        <IconFG>S_AuraofVitality_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Other</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Life2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>CityTrainingBonus</ModType>
            <Attribute>TrainingBonus_ApplyUnitModifier_Add</Attribute>
            <StrVal>UnitStat_HitPoints</StrVal>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[TileYieldEssence]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_AuraOfVitality_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_AuraofVitality_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="AutoDefend">
        <DisplayName>Defending</DisplayName>
        <Description>When a unit passes their attack action, their Defense is improved until their next action.</Description>
        <Image>Ability_Defend_Icon.png</Image>
        <IconFG>Ability_Defend_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Effect>Y_Defend_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_Tactical_Auto_Defense_Boost]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
    </SpellDef>
    <SpellDef InternalName="AutumnalEquinox">
        <DisplayName>Autumnal Equinox</DisplayName>
        <Description>Deals poison damage to all enemies equal to 50% of your missing HP.</Description>
        <FormattedDescription>Deals poison damage to all enemies equal to 50%% of your missing HP (%d).</FormattedDescription>
        <IconFG>T_AutumnalEquinox.png</IconFG>
        <Cooldown>20</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Poison</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetCurrentDamage] * .5]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>75</AIPriority>
        </AIData>
        <CameraShakeDuration>3.25</CameraShakeDuration>
        <CameraShakeStrength>0.1</CameraShakeStrength>
        <HitSoundFX>Spell_BirthOfSummer_01</HitSoundFX>
        <ModifierDelay>1</ModifierDelay>
        <SpellDefEffect>
            <EffectName>T_MoriansChant_Particle</EffectName>
            <LocalPosition>0,-50,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Barbs">
        <DisplayName>Barbs</DisplayName>
        <Description>Does 16 damage to the target and the caster.</Description>
        <Image>T_Barbs_Painting.png</Image>
        <IconFG>T_Barbs_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsSpecialAbility>1</IsSpecialAbility>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>8</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Value>-16</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <ApplyToCaster>1</ApplyToCaster>
            <Value>-16</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        <ValueCalcWrapper>
            <ValueType>IsTargetWorthy</ValueType>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetHPCurrent]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] > 16]]></Expression>
            </Calculate>
        </ValueCalcWrapper>
        </AIData>
        <HitSoundFX>Spell_Barbs_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Barbs_Particle</EffectName>
            <LocalPosition>0,35,0</LocalPosition>
            <EffectScale>0.65</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BasicCatapultAttack">
        <DisplayName>Catapult Attack</DisplayName>
        <Description>Attack a unit from a distance with a giant thrown rock.</Description>
        <Image>Action_Catapult.png</Image>
        <IconFG>Action_Catapult.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AllowFriendlyFireInRadius>1</AllowFriendlyFireInRadius>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsRangedAttack>1</IsRangedAttack>
        <Radius>1</Radius>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Catapult_Hit1</HitSoundFX>
        <HitSoundFX>Spell_Catapult_Hit2</HitSoundFX>
        <MissSoundFX>Catapult_Miss1</MissSoundFX>
        <MissSoundFX>Catapult_Miss2</MissSoundFX>
        <SpellCastSoundFX>Catapult_Toss</SpellCastSoundFX>
        <SpellCastEffectName>Catapult_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.9</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>500</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="BattleCry">
        <DisplayName>Battle Cry</DisplayName>
        <Description>All units in your Army get to act immediately.</Description>
        <Image>T_Haste_Painting.png</Image>
        <IconFG>T_BattleCry_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Spell_BattleCry</Attribute>
        </Prereq>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Effect>E_Celerity_Particle</Effect>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BattleCry_01</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="Beguile">
        <DisplayName>Beguile</DisplayName>
        <Description>Victim has a 50% chance to swing at a random unit in melee instead of his target.</Description>
        <Image>T_Confusion_Painting.png</Image>
        <IconFG>T_Beguile_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <PreventStackingWith>Confusion</PreventStackingWith>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ClumsyChance</StrVal>
            <DisplayName>Beguiled</DisplayName>
            <Duration>-1</Duration>
            <Value>50</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</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_Confusion_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Confusion_Particle</EffectName>
            <LocalPosition>0,35,0</LocalPosition>
            <EffectScale>0.65</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Berserk_Self">
        <DisplayName>Berserk</DisplayName>
        <Description>+2 to Attack and Initiative but the unit will attack enemies without player direction.  Berserk units never cast spells.</Description>
        <Image>T_Berzerk_Painting.png</Image>
        <IconFG>T_Berzerk_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <IsCastable>0</IsCastable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <PreventStackingWith>Berserk</PreventStackingWith>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <DisplayName>Berserk</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Berserk_Particle</Effect>
            <Value>2</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <Duration>-1</Duration>
            <Value>2</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_AIControlChance</StrVal>
            <Duration>-1</Duration>
            <Value>100</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>PreventSpellcasting</Attribute>
            <Duration>-1</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</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_Beserk_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Berserk_Particle</EffectName>
            <LocalPosition>0,35,0</LocalPosition>
            <EffectScale>0.7</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BirthOfSummer">
        <DisplayName>Birth of Summer</DisplayName>
        <Description>Revive the land.</Description>
        <Image>ReviveLand_Painting.png</Image>
        <IconFG>S_BirthOfSummer_Icon.png</IconFG>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Terraform</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>NeutralGround</SpellTargetType>
        <Radius>1</Radius>
        <Prereq>
            <Type>Allegiance</Type>
            <Attribute>Kingdom</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>200</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>PlaceEnvironment</Attribute>
            <TerrainType>GrasslandEnvironment</TerrainType>
        </GameModifier>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BirthOfSummer_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Revive_Land</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BladeRush">
        <DisplayName>Blade Rush</DisplayName>
        <Description>Rush through enemies in a straight line, dealing damage equal to your attack to any in your way.</Description>
        <IconFG>Ability_BladeRush_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <SpellTargetTileOccupied>Empty</SpellTargetTileOccupied>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <Radius>4</Radius>
        <RadiusType>LINE_BACKWARD</RadiusType>
        <Range>4</Range>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>TransportUnit</Attribute>
            <ApplyToCaster>1</ApplyToCaster>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
        </GameModifier>
        <HitSoundFX>Spell_ManaBlastImpact_01</HitSoundFX>
        <SpellCastSoundFX>Spell_ManaBlastTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_ManaBlast_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="Bleed_Ability">
        <DisplayName>Bleed</DisplayName>
        <Description>Attack that does normal damage and 3 damage per action to the victim.</Description>
        <FormattedDescription>Attack that does normal damage and %d damage per action to the victim.</FormattedDescription>
        <IconFG>Ability_Bleed_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <UseWeaponRange>1</UseWeaponRange>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Effect>Bloody_OnHit</Effect>
            <PerTurn>1</PerTurn>
            <Value>1</Value>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[3 + [UnitStat_BonusBleed]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Knockback_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Ability_ShieldBash_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.25</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BlessCity">
        <DisplayName>Bless City</DisplayName>
        <Description>Reduces Unrest in the target city by 30%.</Description>
        <Image>S_Inspiration_Painting.png</Image>
        <IconFG>S_BlessCity_Icon.png</IconFG>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>500</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Unrest</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>-30</Value>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>30</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BlessCity_01</HitSoundFX>
        <SpellCastEffectName>Brilliance</SpellCastEffectName>
        <SpellCastEffectScale>.4</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>S_Inspiration_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0.5</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BlessingOfRestoration">
        <DisplayName>Blessing of Restoration</DisplayName>
        <Description>Allows the targeted Champion to be able to cast Heal.</Description>
        <Image>S_BlessingOfRestoration_Painting.png</Image>
        <IconFG>S_BlessingOfRestoration_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <UniqueSpellUnlock>Heal</UniqueSpellUnlock>
        <Prereq>
            <Type>Allegiance</Type>
            <Attribute>Kingdom</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>50</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>UnlockSpell</Attribute>
            <StrVal>Heal</StrVal>
            <Duration>-1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>30</AIPriority>
        </AIData>
        <HitSoundFX>Spell_MantleOfFire_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_MantleofFire_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Blight">
        <DisplayName>Blight</DisplayName>
        <Description>All players lose 50% of their population.</Description>
        <Image>S_Blight_Painting.png</Image>
        <IconFG>S_Blight_Icon.png</IconFG>
        <Cooldown>10</Cooldown>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>400</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>AllPlayerStoredResourceAdjustment</Attribute>
            <StrVal>Population</StrVal>
            <Value>-50</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Antipathy_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Blight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Blight_Ability">
        <DisplayName>Blight</DisplayName>
        <Description>All players lose 50% of their population.</Description>
        <Image>S_Blight_Painting.png</Image>
        <IconFG>S_Blight_Icon.png</IconFG>
        <Cooldown>10</Cooldown>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>AllPlayerStoredResourceAdjustment</Attribute>
            <StrVal>Population</StrVal>
            <Value>-50</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Antipathy_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Blight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BlindingLight">
        <DisplayName>Blinding Light</DisplayName>
        <Description>Enemies within 1 tile suffer a -25% to Accuracy for 5 turns, unless they resist.</Description>
        <IconFG>T_BlindingLight_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AllowFriendlyFireInRadius>0</AllowFriendlyFireInRadius>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <PreventStackingWith>SummonLightbringer_Tactical</PreventStackingWith>
        <Radius>1</Radius>
        <Range>0</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Spell_BlindingLight</Attribute>
        </Prereq>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Accuracy</StrVal>
            <DisplayName>Blinded</DisplayName>
            <Duration>5</Duration>
            <Effect>E_Blindness_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Accuracy] * -0.25]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <Duration>5</Duration>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Dodge] * -0.25]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Blind_01</HitSoundFX>
        <WorldLightOverrideTime>4</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>1500,1500,1500</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>500,500,500</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>240,240,240</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>240,240,240</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>S_BlindingLight_Particle</EffectName>
            <LocalPosition>0,60,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Blindness">
        <DisplayName>Blindness</DisplayName>
        <Description>Target enemy is stricken blind, resulting in a 33% penalty to Accuracy unless they resist.</Description>
        <Image>T_Blindness_Painting.png</Image>
        <IconFG>T_Blindness_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <PreventStackingWith>Blindness_Ability</PreventStackingWith>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>12</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Accuracy</StrVal>
            <DisplayName>Blinded</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Blindness_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Accuracy] * -0.25]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Dodge] * -0.25]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</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_Blind_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Blindness_Particle</EffectName>
            <LocalPosition>0,60,0</LocalPosition>
            <EffectScale>.3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Blindness_Ability">
        <DisplayName>Blindness</DisplayName>
        <Description>Target enemy is stricken blind, resulting in a 33% penalty to Accuracy unless they resist.</Description>
        <Image>T_Blindness_Painting.png</Image>
        <IconFG>T_Blindness_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <PreventStackingWith>Blindness</PreventStackingWith>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Accuracy</StrVal>
            <DisplayName>Blinded</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Blindness_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Accuracy] * -0.25]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Dodge] * -0.25]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</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_Blind_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Blindness_Particle</EffectName>
            <LocalPosition>0,60,0</LocalPosition>
            <EffectScale>.3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Blink">
        <DisplayName>Blink</DisplayName>
        <Description>Teleport to any location in Tactical combat.</Description>
        <IconFG>T_Blink_Icon.png</IconFG>
        <Cooldown>25</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <SpellTargetTileOccupied>Empty</SpellTargetTileOccupied>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>TransportUnit</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Blind_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Blink_Particle</EffectName>
            <LocalPosition>0,100,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Blizzard">
        <DisplayName>Blizzard</DisplayName>
        <Description>Units take 16 cold damage (+2 per water shard) per member.</Description>
        <FormattedDescription>Units take %d cold damage per member.</FormattedDescription>
        <Image>T_Blizzard_Painting.png</Image>
        <IconFG>T_Blizzard_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>2</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AllowFriendlyFireInRadius>1</AllowFriendlyFireInRadius>
        <IsResistable>1</IsResistable>
        <Radius>2</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Water4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Cold</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 16]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetTroopCount]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2] * [Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Cold</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetTroopCount]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2] * [Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>75</AIPriority>
        </AIData>
        <CameraShakeDuration>3.25</CameraShakeDuration>
        <CameraShakeStrength>0.1</CameraShakeStrength>
        <HitSoundFX>Spell_Blizzard_01</HitSoundFX>
        <HitSoundFX>Spell_Blizzard_02</HitSoundFX>
        <ModifierDelay>2</ModifierDelay>
        <WorldLightOverrideTime>6</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>70,70,70</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>80,100,120</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>60,60,260</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>60,160,260</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>T_Blizzard_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Blizzard_Ability">
        <DisplayName>Blizzard</DisplayName>
        <Description>Units take 16 cold damage (+2 per water shard) per member.</Description>
        <FormattedDescription>Units take %d cold damage per member.</FormattedDescription>
        <Image>T_Blizzard_Painting.png</Image>
        <IconFG>T_Blizzard_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AllowFriendlyFireInRadius>1</AllowFriendlyFireInRadius>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>2</Radius>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Cold</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 16]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetTroopCount]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2] * [Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Cold</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetTroopCount]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2] * [Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>75</AIPriority>
        </AIData>
        <CameraShakeDuration>3.25</CameraShakeDuration>
        <CameraShakeStrength>0.1</CameraShakeStrength>
        <HitSoundFX>Spell_Blizzard_01</HitSoundFX>
        <HitSoundFX>Spell_Blizzard_02</HitSoundFX>
        <ModifierDelay>2</ModifierDelay>
        <WorldLightOverrideTime>6</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>70,70,70</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>80,100,120</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>60,60,260</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>60,160,260</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>T_Blizzard_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BloodCurse">
        <DisplayName>Blood Curse</DisplayName>
        <Description>Target city sacrifices half its citizens.  The caster receives a hit point for each citizen sacrificed.  The caster no long heals naturally.  Only the sovereign can cast this spell.</Description>
        <Image>S_BloodCurse_Painting.png</Image>
        <IconFG>S_BloodCurse_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <RequiresEssenceSlot>0</RequiresEssenceSlot>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_HitPoints</StrVal>
            <ApplyToCaster>1</ApplyToCaster>
            <Duration>-1</Duration>
            <Effect>E_BloodCurse_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[CityPopulation] / 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>Sacrifice</Attribute>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[CityPopulation] / 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>MaxHPRegen</Attribute>
            <ApplyToCaster>1</ApplyToCaster>
            <Value>0</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BloodCurse_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Sacrifice_Particle</EffectName>
            <LocalPosition>0,50,0</LocalPosition>
            <EffectScale>1.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BloodRage">
        <DisplayName>Blood Rage</DisplayName>
        <Description>Permanently improves the targets Attack by 1.  Can be cast multiple times on the same unit.</Description>
        <Image>S_BloodRage_Painting.png</Image>
        <IconFG>S_Bloodrage_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>1</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>100</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <Duration>-1</Duration>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BloodRage_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_BloodRage_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.35</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BloodSigil">
        <DisplayName>Blood Sigil</DisplayName>
        <Description>Berserks all defending units and Withers all attacking units.</Description>
        <Image>S_BloodRage_Painting.png</Image>
        <IconFG>S_BloogSigil_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>BattleAutoCastSpell</Attribute>
            <StrVal>Wither_Autocast</StrVal>
            <Duration>-1</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>BattleAutoCastSpell</Attribute>
            <StrVal>MassBerserk</StrVal>
            <Duration>-1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Beserk_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Berserk_Particle</EffectName>
            <LocalPosition>0,35,0</LocalPosition>
            <EffectScale>0.7</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BloomOfTwilight">
        <DisplayName>Bloom of Twilight</DisplayName>
        <Description>Revive the land.</Description>
        <Image>ReviveLand_Painting.png</Image>
        <IconFG>S_BloomofTwilight_Icon.png</IconFG>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Terraform</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>NeutralGround</SpellTargetType>
        <Radius>1</Radius>
        <Prereq>
            <Type>Allegiance</Type>
            <Attribute>Empire</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>200</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>PlaceEnvironment</Attribute>
            <TerrainType>DeadEnvironment</TerrainType>
        </GameModifier>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BirthOfSummer_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Revive_Land</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BottledFire">
        <DisplayName>Bottled Fire</DisplayName>
        <Description>Fire shrieks out of the bottle and toward it's victim, striking for 16 fire damage.</Description>
        <IconFG>T_FlameDart_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <Value>16</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Value>8</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FlameDart_01</HitSoundFX>
        <SpellCastSoundFX>Spell_FlameDartTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_FlameDart_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.30</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>800</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>E_FlameDartImpact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BowAttack_Basic">
        <DisplayName>Bow Attack</DisplayName>
        <Description>Attack a unit from a distance with a single arrow from your bow.</Description>
        <Image>Action_BowArrow.png</Image>
        <IconFG>Action_BowArrow.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsRangedAttack>1</IsRangedAttack>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Hit_Arrow1</HitSoundFX>
        <HitSoundFX>Hit_Arrow2</HitSoundFX>
        <MissSoundFX>Miss_Swing2</MissSoundFX>
        <SpellCastSoundFX>Spell_BowAttack_BasicCast_01</SpellCastSoundFX>
        <SpellCastEffectName>Arrow</SpellCastEffectName>
        <SpellCastEffectScale>0.5</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>1100</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="BowAttack_Flaming">
        <DisplayName>Bow Attack</DisplayName>
        <Description>Attack a unit from a distance with a single arrow from your bow.</Description>
        <Image>Action_BowArrow.png</Image>
        <IconFG>Action_BowArrow.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsRangedAttack>1</IsRangedAttack>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FlamingArrow_Hit_01</HitSoundFX>
        <HitSoundFX>Spell_FlamingArrow_Hit_02</HitSoundFX>
        <SpellCastSoundFX>Spell_BowAttack_FlamingCast_01</SpellCastSoundFX>
        <SpellCastEffectName>A_FlamingLongbow_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.3</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="BowAttack_Freezing">
        <DisplayName>Bow Attack</DisplayName>
        <Description>Attack a unit from a distance with a single arrow from your bow.</Description>
        <Image>Action_BowArrow.png</Image>
        <IconFG>Action_BowArrow.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsRangedAttack>1</IsRangedAttack>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FreezingArrow_Hit_01</HitSoundFX>
        <HitSoundFX>Spell_FreezingArrow_Hit_02</HitSoundFX>
        <SpellCastSoundFX>Spell_BowAttack_FreezingCast_01</SpellCastSoundFX>
        <SpellCastEffectName>A_HailstoneStaff_Projectile_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.7</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>500</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>A_HailstoneStaff_Impact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BowAttack_Ice">
        <DisplayName>Bow Attack</DisplayName>
        <Description>Attack a unit from a distance with a single arrow from your bow.</Description>
        <Image>Action_BowArrow.png</Image>
        <IconFG>Action_BowArrow.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsRangedAttack>1</IsRangedAttack>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_IceArrow_Hit_01</HitSoundFX>
        <HitSoundFX>Spell_IceArrow_Hit_02</HitSoundFX>
        <SpellCastSoundFX>Spell_BowAttack_FreezingCast_01</SpellCastSoundFX>
        <SpellCastEffectName>A_IceStaff_Projectile_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.5</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>600</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>A_HailstoneStaff_Impact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.9</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BowAttack_Ignys">
        <DisplayName>Bow Attack</DisplayName>
        <Description>Attack a unit from a distance with a single arrow from your bow.</Description>
        <Image>Action_BowArrow.png</Image>
        <IconFG>Action_BowArrow.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsRangedAttack>1</IsRangedAttack>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FlamingArrow_Hit_01</HitSoundFX>
        <HitSoundFX>Spell_FlamingArrow_Hit_02</HitSoundFX>
        <SpellCastSoundFX>Spell_BowAttack_FlamingCast_01</SpellCastSoundFX>
        <SpellCastEffectName>A_IgnysLongbow_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.3</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>A_IgnysLongbow_Impact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BowAttack_Lightning">
        <DisplayName>Bow Attack</DisplayName>
        <Description>Attack a unit from a distance with a single arrow from your bow.</Description>
        <Image>Action_BowArrow.png</Image>
        <IconFG>Action_BowArrow.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsRangedAttack>1</IsRangedAttack>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_LightningArrow_Hit_01</HitSoundFX>
        <HitSoundFX>Spell_LightningArrow_Hit_02</HitSoundFX>
        <SpellCastSoundFX>Spell_BowAttack_LightningCast_01</SpellCastSoundFX>
        <SpellCastEffectName>A_LightningLongbow_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.3</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>A_LightningLongbow_Impact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BowAttack_Toxic">
        <DisplayName>Bow Attack</DisplayName>
        <Description>Attack a unit from a distance with a single arrow from your bow.</Description>
        <Image>Action_BowArrow.png</Image>
        <IconFG>Action_BowArrow.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsRangedAttack>1</IsRangedAttack>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <Effect>E_Poison_Particle</Effect>
            <SoundFX>Spell_Poisoned2_01</SoundFX>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ToxicArrow_Hit_01</HitSoundFX>
        <HitSoundFX>Spell_ToxicArrow_Hit_02</HitSoundFX>
        <SpellCastSoundFX>Spell_BowAttack_ToxicCast_01</SpellCastSoundFX>
        <SpellCastEffectName>A_ToxicLongbow_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.3</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>A_ToxicLongbow_Impact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Break">
        <DisplayName>Break</DisplayName>
        <Description>Normal attack that also removes all the Target's Defense for 3 actions.</Description>
        <IconFG>Ability_Break_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <UseWeaponRange>1</UseWeaponRange>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <DisplayName>Broken</DisplayName>
            <Duration>3</Duration>
            <Effect>E_Break_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Defense_Pierce] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        <ValueCalcWrapper>
            <ValueType>IsTargetWorthy</ValueType>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Defense_Pierce]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] > 5]]></Expression>
            </Calculate>
        </ValueCalcWrapper>
        </AIData>
        <HitSoundFX>Spell_Curse_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Break_Particle</EffectName>
            <LocalPosition>0,50,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BrokenLoyalties">
        <DisplayName>Broken Loyalties</DisplayName>
        <Description>Take control of target city.</Description>
        <Image>S_Inspiration_Painting.png</Image>
        <IconFG>S_BrokenLoyalties_Icon.png</IconFG>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>Charm</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyCity</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <SpellResourceCost>
            <Resource>Gold</Resource>
            <Amount>1000</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>TransferCityControl</Attribute>
            <BoolVal1>1</BoolVal1>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Antipathy_01</HitSoundFX>
        <SpellCastEffectName>Brilliance</SpellCastEffectName>
        <SpellCastEffectScale>0.4</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>S_Blight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BurningBlade">
        <DisplayName>Burning Blade</DisplayName>
        <Description>Enchanted champion's weapon does +2 (+1 per fire shard) fire damage.</Description>
        <Image>S_BurningBlade_Painting.png</Image>
        <IconFG>S_BurningBlade_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>10</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Fire</StrVal>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 2]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>50</AIPriority>
        </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>
    <SpellDef InternalName="BurningBlade_Tactical">
        <DisplayName>Burning Blade</DisplayName>
        <Description>Enchanted champion's weapon does +2 (+1 per fire shard) fire damage.</Description>
        <FormattedDescription>Enchanted champion's weapon does +%d fire damage.</FormattedDescription>
        <Image>S_BurningBlade_Painting.png</Image>
        <IconFG>S_BurningBlade_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <PreventStackingWith>BurningBlade</PreventStackingWith>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>10</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Fire</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 2]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 2]]></Expression>
            </Calculate>
        </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>
    <SpellDef InternalName="BurningHands">
        <DisplayName>Burning Hands</DisplayName>
        <Description>3 adjacent enemies are blasted with heat, taking 8 (+2 per fire shard) in fire damage.</Description>
        <FormattedDescription>3 adjacent enemies are blasted with heat, taking %d fire damage.</FormattedDescription>
        <Image>T_BurningHands_Painting.png</Image>
        <IconFG>T_BurningHands_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Radius>1</Radius>
        <RadiusType>ADJACENT</RadiusType>
        <Range>1</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>10</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>35</AIPriority>
            <AIMinSpellTargets>2</AIMinSpellTargets>
        </AIData>
        <HitSoundFX>Spell_Fireball_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_BurningHands_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="BurningHands_Adept">
        <DisplayName>Burning Hands</DisplayName>
        <Description>3 adjacent enemies are blasted with heat, taking 8 (+2 per fire shard) in fire damage.</Description>
        <FormattedDescription>3 adjacent enemies are blasted with heat, taking %d fire damage.</FormattedDescription>
        <Image>T_BurningHands_Painting.png</Image>
        <IconFG>T_BurningHands_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Radius>1</Radius>
        <RadiusType>ADJACENT</RadiusType>
        <Range>1</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>FireAdept1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>10</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>35</AIPriority>
            <AIMinSpellTargets>2</AIMinSpellTargets>
        </AIData>
        <HitSoundFX>Spell_Fireball_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_BurningHands_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CallLightning">
        <DisplayName>Call Lightning</DisplayName>
        <Description>Creates a lightning storm which does up 36 lighting damage to all enemy units within the area of effect.</Description>
        <Image>AirCrystal_Medallion.png</Image>
        <IconFG>T_ChainLightning_Icon.png</IconFG>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AllowFriendlyFireInRadius>0</AllowFriendlyFireInRadius>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>48</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <Value>36</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Value>18</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Storm_01</HitSoundFX>
        <WorldLightOverrideTime>2</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>30,30,30</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>30,30,30</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>212,0,192</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>0,132,234</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>T_Storm_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>3</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CallOfTheTitans">
        <DisplayName>Call of the Titans</DisplayName>
        <Description>All unstationed units will be teleported to the selected tile.</Description>
        <Image>S_CalloftheTitans_Painting.png</Image>
        <IconFG>S_CalloftheTitans_Icon.png</IconFG>
        <Cooldown>10</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Movement</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Movement</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>AnyKnownTerritory</SpellTargetType>
        <SpellTargetTileOccupied>FriendlyOrEmpty</SpellTargetTileOccupied>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>50</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>TeleportAllUnits</Attribute>
        </GameModifier>
        <ValidTerrainCategory>Beach</ValidTerrainCategory>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Teleport_03</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_CalloftheTitans_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.9</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CallSlag">
        <DisplayName>Call Slag</DisplayName>
        <Description>Summons a Slag or the smaller River Slag.</Description>
        <FormattedDescription>Summons a level %d Slag or the smaller River Slag.</FormattedDescription>
        <Image>T_CallSlag_Painting.png</Image>
        <IconFG>T_CallSlag_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <CastTime>2</CastTime>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <AppliesRandomModifier>1</AppliesRandomModifier>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Slag</StrVal>
            <UnitClass>Slag</UnitClass>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 10]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>River Slag</StrVal>
            <UnitClass>RiverSlag</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 10]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_CallSlag_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonEarthElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CallToArms">
        <DisplayName>Call to Arms</DisplayName>
        <Description>First unit in the queue is instantly trained.</Description>
        <Image>S_CallToArms_Painting.png</Image>
        <IconFG>S_CallToArms_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>1</Cooldown>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Life4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>80</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>CompleteUnitInTraining</Attribute>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>30</AIPriority>
        </AIData>
        <HitSoundFX>Spell_CalltoArms_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_CalltoArms_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CallUteran">
        <DisplayName>Call Uteran</DisplayName>
        <Description>Summons a Cave Bear at the same level as the caster.</Description>
        <FormattedDescription>Summons a level %d Cave Bear.</FormattedDescription>
        <Image>TuskedBear_Medallion.png</Image>
        <IconFG>T_CallUteran_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Uteran</StrVal>
            <UnitClass>CaveBear</UnitClass>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + [Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_CallUteran_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonEarthElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Candlecloak">
        <DisplayName>Candlecloak</DisplayName>
        <Description>Wreathes all your units in flames, doing 3 fire damage to anyone who attacks them.</Description>
        <Image>T_CandleCloak_Painting.png</Image>
        <IconFG>T_CandleCloak_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>MeleeDefenseAppliesSpell</Attribute>
            <StrVal>Candlecloak_Effect</StrVal>
            <Duration>-1</Duration>
            <Effect>E_MantleofFire_Particle</Effect>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <HitSoundFX>Spell_MantleOfFire_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_MantleofFire_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Candlecloak_Effect">
        <DisplayName>Candlecloak</DisplayName>
        <Description>Wreathes all your units in flames, doing 3 fire damage to anyone who attacks them.</Description>
        <Image>T_CandleCloak_Painting.png</Image>
        <IconFG>T_CandleCloak_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <Value>3</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DarkEnchant_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Flame_Impact</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.35</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Celerity">
        <DisplayName>Celerity</DisplayName>
        <Description>Permanently improves the targets Initiative by 1.  Can be cast multiple times on the same unit, but requires a lot of mana.</Description>
        <Image>T_Celerity_Painting.png</Image>
        <IconFG>T_Celerity_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>1</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Air5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>250</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <Duration>-1</Duration>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Celerity_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Haste_Particle</EffectName>
            <LocalPosition>0,25,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ChannelLightning">
        <DisplayName>ChannelLightning</DisplayName>
        <Description>An attack that converts your weapon's attack to Lightning.</Description>
        <FormattedDescription>An attack that does %d lightning damage.</FormattedDescription>
        <IconFG>Ability_ChannelLightning_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <ApproachTargetTile>1</ApproachTargetTile>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <UseWeaponRange>1</UseWeaponRange>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>5</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Storm_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_StaticBlast_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Chaos">
        <DisplayName>Chaos</DisplayName>
        <Description>Does a random effect to target enemy unit unless they resist.</Description>
        <Image>T_Chaos_Painting.png</Image>
        <IconFG>T_Chaos_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AppliesRandomModifier>1</AppliesRandomModifier>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Water2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>12</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Cold</AttackStat>
            <MinValue>6</MinValue>
            <MaxValue>16</MaxValue>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <MinValue>-3</MinValue>
            <MaxValue>-8</MaxValue>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <DisplayName>Slowed</DisplayName>
            <Duration>-1</Duration>
            <Value>-1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <DisplayName>Weakened</DisplayName>
            <Duration>-1</Duration>
            <Value>-1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>ChanceToLoseNextTurn</Attribute>
            <DisplayName>Dazed</DisplayName>
            <Duration>1</Duration>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Chaos_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Chaos_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Chaos_Adept">
        <DisplayName>Chaos</DisplayName>
        <Description>Does a random effect to target enemy unit unless they resist.</Description>
        <Image>T_Chaos_Painting.png</Image>
        <IconFG>T_Chaos_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AppliesRandomModifier>1</AppliesRandomModifier>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>WaterAdept2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>12</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Cold</AttackStat>
            <MinValue>6</MinValue>
            <MaxValue>16</MaxValue>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <MinValue>-3</MinValue>
            <MaxValue>-8</MaxValue>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <DisplayName>Slowed</DisplayName>
            <Duration>-1</Duration>
            <Value>-1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <DisplayName>Weakened</DisplayName>
            <Duration>-1</Duration>
            <Value>-1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>ChanceToLoseNextTurn</Attribute>
            <DisplayName>Dazed</DisplayName>
            <Duration>1</Duration>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Chaos_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Chaos_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Cleave_Ability">
        <DisplayName>Cleave</DisplayName>
        <Description>Swing at 3 adjacent enemys.</Description>
        <FormattedDescription>Launch an %d Attack at 3 adjacent enemys.</FormattedDescription>
        <IconFG>Ability_Cleave_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <RadiusType>ADJACENT</RadiusType>
        <Range>1</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack] * [UnitStat_BonusCleave]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
            <AIMinSpellTargets>2</AIMinSpellTargets>
        </AIData>
        <HitSoundFX>Ability_Cleave_01</HitSoundFX>
        <HitSoundFX>Ability_Cleave_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_Ability_Cleave</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.4</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CloakOfFear">
        <DisplayName>Cloak of Fear</DisplayName>
        <Description>Enemies must make a spell resistance check before they can attack the caster for the next 5 turns.</Description>
        <Image>S_CloakOfFear_Painting.png</Image>
        <IconFG>S_CloakOfFear_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>35</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CloakOfFear</Attribute>
            <Duration>5</Duration>
            <Effect>E_CloakOfFear_Particle</Effect>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>45</AIPriority>
        </AIData>
        <HitSoundFX>Spell_CloakOfFear_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_CloakOfFear_Particle</EffectName>
            <LocalPosition>0,40,0</LocalPosition>
            <EffectScale>0.7</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CloakOfFear_Ability">
        <DisplayName>Cloak of Fear</DisplayName>
        <Description>Enemies must make a spell resistance check before they can attack the caster for the next 5 turns.</Description>
        <Image>S_CloakOfFear_Painting.png</Image>
        <IconFG>S_CloakOfFear_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsSpecialAbility>1</IsSpecialAbility>
        <PreventStackingWith>CloakOfFear</PreventStackingWith>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CloakOfFear</Attribute>
            <Duration>-1</Duration>
            <Effect>E_CloakOfFear_Particle</Effect>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>45</AIPriority>
        </AIData>
        <HitSoundFX>Spell_CloakOfFear_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_CloakOfFear_Particle</EffectName>
            <LocalPosition>0,40,0</LocalPosition>
            <EffectScale>0.7</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CloakOfThorns">
        <DisplayName>Cloak of Thorns</DisplayName>
        <Description>25% of the damage done to the target is reflected back on his attacker.</Description>
        <Image>S_CloakOfFear_Painting.png</Image>
        <IconFG>S_CloakOfThorns_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Abjuration</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>35</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_DamageReflect</StrVal>
            <Duration>-1</Duration>
            <Effect>E_CloakOfFear_Particle</Effect>
            <Value>0.25</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>45</AIPriority>
        </AIData>
        <HitSoundFX>Spell_CloakOfThorns_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_CloakOfFear_Particle</EffectName>
            <LocalPosition>0,40,0</LocalPosition>
            <EffectScale>0.7</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CloudWalk">
        <DisplayName>Cloud Walk</DisplayName>
        <Description>Teleports the caster, and their army, to a tile in friendly territory.</Description>
        <Image>S_CloudWalk_Painting.png</Image>
        <IconFG>S_CloudWalk_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>1</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Movement</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Movement</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyTerritory</SpellTargetType>
        <SpellTargetTileOccupied>FriendlyOrEmpty</SpellTargetTileOccupied>
        <AlwaysPromptForCaster>1</AlwaysPromptForCaster>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Air4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>80</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>TransportUnit</Attribute>
        </GameModifier>
        <ValidTerrainCategory>Beach</ValidTerrainCategory>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
            <AITag>Teleport</AITag>
        </AIData>
        <HitSoundFX>Spell_CloudWalk_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_CloudWalk_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.50</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CoalStones">
        <DisplayName>Coal Stones</DisplayName>
        <Description>Lances of fire strike all enemy units for double the caster's level in fire damage.</Description>
        <FormattedDescription>Lances of fire strike all enemy units for %d fire damage.</FormattedDescription>
        <Image>T_FlameDart_Painting.png</Image>
        <IconFG>T_CoalStones_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FlameDart_01</HitSoundFX>
        <SpellCastSoundFX>Spell_FlameDartTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_FlameDart_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.30</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>800</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>E_FlameDartImpact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Command">
        <DisplayName>Command</DisplayName>
        <Description>Target unit takes its next turn immediately.</Description>
        <IconFG>Ability_Command_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>GoNext</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Command</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Command_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Confusion">
        <DisplayName>Confusion</DisplayName>
        <Description>All enemies have a 50% chance to swing at a random unit in melee instead of their target, unless they resist.</Description>
        <Image>T_Confusion_Painting.png</Image>
        <IconFG>T_Confusion_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <IsResistable>1</IsResistable>
        <PreventStackingWith>Beguile</PreventStackingWith>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ClumsyChance</StrVal>
            <DisplayName>Confused</DisplayName>
            <Duration>-1</Duration>
            <Value>50</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Confustion_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Confusion_Particle</EffectName>
            <LocalPosition>0,35,0</LocalPosition>
            <EffectScale>0.65</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Consume">
        <DisplayName>Consume</DisplayName>
        <Description>Destroy a shard in your territory to gain 200 mana.</Description>
        <Image>S_Consume_Painting.png</Image>
        <IconFG>S_Consume_Icon.png</IconFG>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Other</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>AnyShard</SpellTargetType>
        <SpellTargetZOCType>Friendly</SpellTargetZOCType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>0</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>DestroyObjects</Attribute>
            <BoolVal1>1</BoolVal1>
        </GameModifier>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Mana</Attribute>
            <ApplyToCaster>1</ApplyToCaster>
            <Value>200</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Consume_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Corruption_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ConsumeSpirit">
        <DisplayName>Consume Spirit</DisplayName>
        <Description>Target unit takes double the caster's level in damage.  If this kills the target the caster gains 40 Mana.</Description>
        <FormattedDescription>Target unit takes %d damage.  If this kills the target the caster gains 40 Mana.</FormattedDescription>
        <Image>T_DrainLife_Painting.png</Image>
        <IconFG>T_ConsumeSpirit_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Spell_ConsumeSpirit</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>0</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * -2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Mana</Attribute>
            <ApplyToCaster>1</ApplyToCaster>
            <ApplyIfSpellTargetKilled>1</ApplyIfSpellTargetKilled>
            <Value>40</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ManaBlastImpact_01</HitSoundFX>
        <SpellCastSoundFX>Spell_ManaBlastTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_ManaBlast_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>T_ConsumeSpirit_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_ConsumeSpiritGain_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Contagion">
        <DisplayName>Contagion</DisplayName>
        <Description>All enemy units take 2 poison damage (+1 per death shard) per turn for 10 turns, unless they resist.</Description>
        <FormattedDescription>All enemy units take %d poison damage per turn for 10 turns, unless they resist.</FormattedDescription>
        <Image>T_Contagion_Painting.png</Image>
        <IconFG>T_Contagion_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <IsResistable>1</IsResistable>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>18</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Poison</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>10</Duration>
            <Effect>E_Poison_Particle</Effect>
            <PerTurn>1</PerTurn>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 2]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 2]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Contagion_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Contagion_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Contagion_Ability">
        <DisplayName>Contagion</DisplayName>
        <Description>All enemy units take 2 poison damage (+1 per death shard) per turn for 10 turns, unless they resist.</Description>
        <FormattedDescription>All enemy units take %d poison damage per turn for 10 turns, unless they resist.</FormattedDescription>
        <Image>T_Contagion_Painting.png</Image>
        <IconFG>T_Contagion_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <CastTime>1</CastTime>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Poison</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>10</Duration>
            <Effect>E_Poison_Particle</Effect>
            <PerTurn>1</PerTurn>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 2]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 2]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Contagion_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Contagion_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Corruption">
        <DisplayName>Corruption</DisplayName>
        <Description>Transforms a shard in your empire into a Death shard.</Description>
        <Image>S_Corruption_Painting.png</Image>
        <IconFG>S_Corruption_Icon.png</IconFG>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Other</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>RegularShard</SpellTargetType>
        <SpellTargetZOCType>Friendly</SpellTargetZOCType>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>50</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>ChangeShardType</Attribute>
            <StrVal>DeathShard</StrVal>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Consume_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Corruption_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Counterspell">
        <DisplayName>Counterspell</DisplayName>
        <Description>Disrupts a spell an enemy unit is casting unless they resist.</Description>
        <Image>S_Corruption_Painting.png</Image>
        <IconFG>T_Counterspell_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyCaster</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>PathOfTheMage</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>16</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>DisruptSpellCharge</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>500</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Counterspell_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Corruption_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Counterspell_Ability">
        <DisplayName>Counterspell</DisplayName>
        <Description>Disrupts a spell an enemy unit is casting unless they resist.</Description>
        <Image>S_Corruption_Painting.png</Image>
        <IconFG>T_Counterspell_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyCaster</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>DisruptSpellCharge</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>500</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Counterspell_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Corruption_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Courage">
        <DisplayName>Courage</DisplayName>
        <Description>Instills legendary hope in the champion, giving them a bonus of 3 (+1 per life shard) to spell resistance and hit points.</Description>
        <Image>S_Courage_Painting.png</Image>
        <IconFG>S_Courage_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Life1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>8</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_MagicResist</StrVal>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumLifeShards] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_HitPoints</StrVal>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumLifeShards] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Courage_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Courage_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Crusade">
        <DisplayName>Crusade</DisplayName>
        <Description>All trained units gain 1 level.</Description>
        <Image>S_Crusade_Painting.png</Image>
        <IconFG>S_Crusade_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>10</Cooldown>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Life5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>340</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Player</ModType>
            <Attribute>AllTrainedUnitsGainLevel</Attribute>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>25</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Crusade_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Crusade_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CrushingBlow">
        <DisplayName>Crushing Blow</DisplayName>
        <Description>Double your Attack, but you lose your next action.</Description>
        <FormattedDescription>Launch a %d Attack, but you lose your next action.</FormattedDescription>
        <IconFG>Ability_CrushingBlow_Icon.png</IconFG>
        <CanStack>1</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <ApproachTargetTile>1</ApproachTargetTile>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <UseWeaponRange>1</UseWeaponRange>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_BonusCrushingBlow]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>ChanceToLoseNextTurn</Attribute>
            <ApplyToCaster>1</ApplyToCaster>
            <DisplayName>Dazed</DisplayName>
            <Duration>2</Duration>
            <Effect>E_Daze_Particle</Effect>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_CrushingBlow_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_Ability_CrushingBlow</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.6</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CullTheWeak">
        <DisplayName>Cull the Weak</DisplayName>
        <Description>Sacrifice a unit to heal the caster 20 and gain 20 mana.</Description>
        <Image>T_CulltheWeak_Painting.png</Image>
        <IconFG>T_CullTheWeak_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyTrainedUnit</SpellTargetType>
        <SpellTypeDrain>1</SpellTypeDrain>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <ApplyToCaster>1</ApplyToCaster>
            <Value>20</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetHPCurrent] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Mana</Attribute>
            <Value>20</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>PermanentDeath</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_CullTheWeak_01</HitSoundFX>
        <SpellCastSoundFX>Spell_CullTheWeakCast_01</SpellCastSoundFX>
        <SpellCastEffectName>T_Erosion_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>S_StealSpirit_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CurePlague">
        <DisplayName>Cure Plague</DisplayName>
        <Description>Cure the Plague.</Description>
        <Image>T_Wellspring_Painting.png</Image>
        <IconFG>S_CurePlague_Icon.png</IconFG>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <Prereq>
            <Type>UnitStat</Type>
            <Attribute>UnitStat_IsPlagued</Attribute>
            <Value>1</Value>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>500</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Player</ModType>
            <Attribute>AbilityBonus</Attribute>
            <StrVal>A_Prestige</StrVal>
            <Value>50</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Fame</Attribute>
            <Value>40</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_IsPlagued</StrVal>
            <ApplyToCaster>1</ApplyToCaster>
            <Value>-1</Value>
        </GameModifier>
        <SpellDefEffect>
            <EffectName>S_CurePlague_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CurgensVolcano">
        <DisplayName>Curgen's Volcano</DisplayName>
        <Description>Raises a volcano in the midst of your enemies.  The volcano destroys resources, improvements and even cities on the land it targets.</Description>
        <Image>S_CurgensVolcano_Painting.png</Image>
        <IconFG>S_CurgensVolcano_Icon.png</IconFG>
        <CastTime>10</CastTime>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>Any</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <Radius>2</Radius>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>1200</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>DestroyObjects</Attribute>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <ValidTerrainCategory>Mountain</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>60</AIPriority>
        </AIData>
        <CameraShakeDuration>4.25</CameraShakeDuration>
        <CameraShakeStrength>0.25</CameraShakeStrength>
        <HitSoundFX>Spell_Volcano_01</HitSoundFX>
        <SoundMinDist>1000</SoundMinDist>
        <SoundMaxDist>10000</SoundMaxDist>
        <TerrainStamp>valcano</TerrainStamp>
        <StampMorphTime>5</StampMorphTime>
        <WorldLightOverrideTime>5</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>70,70,70</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>80,80,80</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>60,60,60</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>60,60,60</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>LavaEruption1_New</EffectName>
            <LocalPosition>0,150,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>1</EffectDelay>
            <SnapToTerrain>0</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Curse">
        <DisplayName>Curse</DisplayName>
        <Description>Target has no Defense for 3 turns unless they resist.</Description>
        <Image>T_Curse_Painting.png</Image>
        <IconFG>T_Curse_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>12</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <DisplayName>Cursed</DisplayName>
            <Duration>3</Duration>
            <Effect>E_Curse_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Defense_Pierce] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        <ValueCalcWrapper>
            <ValueType>IsTargetWorthy</ValueType>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Defense_Pierce]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] > 5]]></Expression>
            </Calculate>
        </ValueCalcWrapper>
        </AIData>
        <HitSoundFX>Spell_Curse_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Curse_Particle</EffectName>
            <LocalPosition>0,50,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Curse_Ability">
        <DisplayName>Curse</DisplayName>
        <Description>Target has no Defense for 3 turns unless they resist.</Description>
        <Image>T_Curse_Painting.png</Image>
        <IconFG>T_Curse_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <DisplayName>Cursed</DisplayName>
            <Duration>3</Duration>
            <Effect>E_Curse_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Defense_Pierce] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        <ValueCalcWrapper>
            <ValueType>IsTargetWorthy</ValueType>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Defense_Pierce]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] > 5]]></Expression>
            </Calculate>
        </ValueCalcWrapper>
        </AIData>
        <HitSoundFX>Spell_Curse_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Curse_Particle</EffectName>
            <LocalPosition>0,50,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CurseCity">
        <DisplayName>Curse City</DisplayName>
        <Description>Increases Unrest in the target city by 30%.</Description>
        <Image>S_Antipathy_Painting.png</Image>
        <IconFG>S_CurseCity_Icon.png</IconFG>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityCurse</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyCity</SpellTargetType>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>500</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Unrest</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>30</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>30</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Antipathy_01</HitSoundFX>
        <SpellCastEffectName>Brilliance</SpellCastEffectName>
        <SpellCastEffectScale>0.4</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>S_Blight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="CurseOfCyndrum">
        <DisplayName>Curse of Cyndrum</DisplayName>
        <Description>Completely heals the caster and does the amount healed as poison damage to all enemies.</Description>
        <IconFG>Ability_CurseOfCyndrum_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Poison</AttackStat>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetCurrentDamage]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <ApplyToCaster>1</ApplyToCaster>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetCurrentDamage]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>75</AIPriority>
        </AIData>
        <HitSoundFX>Spell_CurseOfCyndrumDamage_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_CurseOfCyndrum_Damage_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Daze">
        <DisplayName>Daze</DisplayName>
        <Description>All enemies lose their next turn unless they resist.</Description>
        <Image>Ability_Daze_Icon.png</Image>
        <IconFG>Ability_Daze_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>ChanceToLoseNextTurn</Attribute>
            <DisplayName>Dazed</DisplayName>
            <Duration>1</Duration>
            <Effect>E_Daze_Particle</Effect>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Daze_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_Daze_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DeadlyBite">
        <DisplayName>Deadly Bite</DisplayName>
        <Description>A devastating bite that strikes for double the unit's Attack.</Description>
        <IconFG>Ability_DeadlyBite_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <ApproachTargetTile>1</ApproachTargetTile>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Range>1</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <CasterAnimationType>31</CasterAnimationType>
        <HitSoundFX>Ability_DeadlyBite</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_DeadlyBite_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1.0</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DeathLash">
        <DisplayName>Death Lash</DisplayName>
        <Description>+3 to Attack and Initiative, but the unit is killed at the end of combat.  This spell can only be cast on Trained Units.</Description>
        <Image>T_DeathLash_Painting.png</Image>
        <IconFG>T_DeathLash_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyTrainedUnit</SpellTargetType>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>5</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <ApplyAtBattleEnd>1</ApplyAtBattleEnd>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetHPCurrent] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <Duration>-1</Duration>
            <Effect>E_Berserk_Particle</Effect>
            <Value>3</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <Duration>-1</Duration>
            <Value>3</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DeathLash_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Berserk_Particle</EffectName>
            <LocalPosition>0,35,0</LocalPosition>
            <EffectScale>0.7</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DeathWard">
        <DisplayName>Death Ward</DisplayName>
        <Description>If this unit is killed in battle they are resurrected with half their hit points.  This resurrection removes this enchantment.</Description>
        <Image>S_DeathWard_Painting.png</Image>
        <IconFG>S_DeathWard_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Life5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>50</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DeathWard</Attribute>
            <Duration>-1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DeathWard_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_DeathWard_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DeathWard_Tactical">
        <DisplayName>Death Ward</DisplayName>
        <Description>If this unit is killed in battle they are resurrected with half their hit points.  This enchantment lasts for 5 actions or until the unit is resurrected.</Description>
        <Image>S_DeathWard_Painting.png</Image>
        <IconFG>S_DeathWard_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>99</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <PreventStackingWith>DeathWard</PreventStackingWith>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DeathWard</Attribute>
            <Duration>5</Duration>
            <Effect>E_DeathWard_Particle</Effect>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DeathWard_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_DeathWard_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Decimate">
        <DisplayName>Decimate</DisplayName>
        <Description>An attack that does +25% damage for each member of the enemy group</Description>
        <IconFG>Ability_Decimate_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <ApproachTargetTile>1</ApproachTargetTile>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <UseWeaponRange>1</UseWeaponRange>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetTroopCount] / 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3">
                <Expression><![CDATA[[Calc2] + 1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * [Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <CameraShakeDuration>0.5</CameraShakeDuration>
        <CameraShakeStrength>0.2</CameraShakeStrength>
        <HitSoundFX>Spell_CrushingBlow_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_Ability_CrushingBlow</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.6</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DefiledBenediction">
        <DisplayName>Defiled Benediction</DisplayName>
        <Description>Allows the targeted Champion to be able to cast  Drain Life.</Description>
        <Image>T_DrainLife_Painting.png</Image>
        <IconFG>S_DefiledBenediction_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <UniqueSpellUnlock>DrainLife</UniqueSpellUnlock>
        <Prereq>
            <Type>Allegiance</Type>
            <Attribute>Empire</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>50</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>UnlockSpell</Attribute>
            <StrVal>DrainLife</StrVal>
            <Duration>-1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_MantleOfFire_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_MantleofFire_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DelinsBreath">
        <DisplayName>Delin's Breath</DisplayName>
        <Description>Delin's Breath summons a fireball that shoots at all enemies.  These fireballs do 18 (+4 per fire shard) fire damage to all units within a 1 tile radius.</Description>
        <FormattedDescription>Delin's Breath summons a fireball that shoots at all enemies.  These fireballs do %d fire damage to all units within a 1 tile radius.</FormattedDescription>
        <Image>T_Fireball_Painting.png</Image>
        <IconFG>T_Fireball_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <AllowFriendlyFireInRadius>1</AllowFriendlyFireInRadius>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] * 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 18]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 9]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>75</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FireBallExplode_01</HitSoundFX>
        <SpellCastSoundFX>Spell_FireBall_01</SpellCastSoundFX>
        <SpellCastEffectName>T_Fireball_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>600</SpellCastProjectileSpeed>
        <WorldLightOverrideTime>3</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>20,20,20</WorldLightOverrideAmbiant>
        <WorldLightOverrideRim0>255,217,66</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>255,115,66</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>E_FireballExplosion_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DemonicAlly">
        <DisplayName>Demonic Ally</DisplayName>
        <Description>Summons an Assassin Demon at the same level as the caster.</Description>
        <FormattedDescription>Summons a level %d Assassin Demon.</FormattedDescription>
        <Image>T_DemonicAlly_Painting.png</Image>
        <IconFG>T_DemonicAlly_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Assassin Demon</StrVal>
            <UnitClass>AssassinDemon</UnitClass>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + [Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonDemonicAlly_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_SummonDeathDemon_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Despair">
        <DisplayName>Despair</DisplayName>
        <Description>Transfers 3 hit points per level from all enemies to the caster.</Description>
        <FormattedDescription>Transfers %d hit points per level from all enemies to the caster.  That damage is halved if the enemy resists.</FormattedDescription>
        <Image>T_DrainLife_Painting.png</Image>
        <IconFG>T_DrainLife_Icon.png</IconFG>
        <CastTime>1</CastTime>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <SpellTypeDrain>1</SpellTypeDrain>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>Lifesteal</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>Lifesteal</Attribute>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>1000</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DrainLife_01</HitSoundFX>
        <SpellCastEffectName>T_Erosion_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>T_DrainLife_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.50</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>0</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DestinysGift">
        <DisplayName>Destiny's Gift</DisplayName>
        <Description>Target Champion gets a random increase in their base stats.</Description>
        <Image>S_DestinysGift_Painting.png</Image>
        <IconFG>S_DestinysGift_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <AppliesRandomModifier>1</AppliesRandomModifier>
        <CasterMustBeSov>1</CasterMustBeSov>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>150</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_HitPoints</StrVal>
            <DisplayName>+3 Hit Points</DisplayName>
            <Value>3</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <DisplayName>+1 Attack</DisplayName>
            <Value>1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <DisplayName>+1 Initiative</DisplayName>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DestinyGift_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Paragon_Particle</EffectName>
            <LocalPosition>0,30,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DestinysInsight">
        <DisplayName>Destiny's Insight</DisplayName>
        <Description>Target Champion receives a glimpse of mystical knowledge, increasing their experience by 25.</Description>
        <Image>S_DestinysInsight_Painting.png</Image>
        <IconFG>S_DestinysInsight_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>200</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>GiveExperience</Attribute>
            <Value>25</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>80</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DestinyGift_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Paragon_Particle</EffectName>
            <LocalPosition>0,30,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Diamondskin">
        <DisplayName>Diamondskin</DisplayName>
        <Description>Unit is immune to physical damage for 3 turns.</Description>
        <Image>T_Stoneskin_Painting.png</Image>
        <IconFG>T_Diamondskin_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>90</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ResistPierce</StrVal>
            <DisplayName>Diamondskin</DisplayName>
            <Duration>3</Duration>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ManaShield_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_ManaShield_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.6</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Diamondskin_Self">
        <DisplayName>Diamondskin</DisplayName>
        <Description>Unit is immune to physical damage for 3 turns.</Description>
        <Image>T_Stoneskin_Painting.png</Image>
        <IconFG>T_Diamondskin_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ResistPierce</StrVal>
            <DisplayName>Diamondskin</DisplayName>
            <Duration>3</Duration>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ManaShield_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_ManaShield_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.6</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DirgeOfCeresa">
        <DisplayName>Dirge of Ceresa</DisplayName>
        <Description>Enemies take 3 (+1 per death shard) poison damage per turn for 10 turns, unless they resist.</Description>
        <FormattedDescription>Enemies take %d poison damage per turn for 10 turns, unless they resist.</FormattedDescription>
        <Image>T_DirgeofCeresa_Painting.png</Image>
        <IconFG>T_DirgeofCeresa_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <IsResistable>1</IsResistable>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>64</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Poison</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>10</Duration>
            <Effect>E_Poison_Particle</Effect>
            <PerTurn>1</PerTurn>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DirgeOfCeresa</HitSoundFX>
        <SpellCastEffectName>T_DirgeofCeresa_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>E_Poison_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DispelEnchantment">
        <DisplayName>Dispel Enchantment</DisplayName>
        <Description>Dispels a random enemy enchantment on target city</Description>
        <Image>S_Inspiration_Painting.png</Image>
        <IconFG>S_DispelEnchantment_Icon.png</IconFG>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <RequiresNegativeEnchantmentOnTarget>1</RequiresNegativeEnchantmentOnTarget>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>90</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>DispelEnchantment</Attribute>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DispelEnchantment_01</HitSoundFX>
        <SpellCastEffectName>Brilliance</SpellCastEffectName>
        <SpellCastEffectScale>.4</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>S_Inspiration_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0.5</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Domination">
        <DisplayName>Domination</DisplayName>
        <Description>Take control of enemy unit unless they resist.</Description>
        <Image>S_Domination_Painting.png</Image>
        <IconFG>S_Domination_Icon.png</IconFG>
        <CastTime>2</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Charm</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CharmTarget</Attribute>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>80</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DominationHit_01</HitSoundFX>
        <SpellCastSoundFX>Spell_DominationProjectile_01</SpellCastSoundFX>
        <SpellCastEffectName>T_Erosion_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>T_ErosionImpact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DoubleStrike">
        <DisplayName>Double Strike</DisplayName>
        <Description>Strike twice at -20 to Accuracy.</Description>
        <IconFG>Ability_DoubleStrike_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <ApproachTargetTile>1</ApproachTargetTile>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <UseWeaponRange>1</UseWeaponRange>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Accuracy</StrVal>
            <ApplyToCaster>1</ApplyToCaster>
            <IsPreHitSpellModifier>1</IsPreHitSpellModifier>
            <Value>-20</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <CasterAnimationType>27</CasterAnimationType>
        <HitSoundFX>Spell_DoubleStrike_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_DoubleStrike_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DrainLife">
        <DisplayName>Drain Life</DisplayName>
        <Description>Transfers 12 hit points (+2 per death shard) from enemy unit to the caster.</Description>
        <FormattedDescription>Transfers %d hit points from enemy unit to the caster.  That damage is halved if the enemy resists.</FormattedDescription>
        <Image>T_DrainLife_Painting.png</Image>
        <IconFG>T_DrainLife_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <SpellTypeDrain>1</SpellTypeDrain>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>28</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>Lifesteal</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 12]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 12]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>Lifesteal</Attribute>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 6]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DrainLife_01</HitSoundFX>
        <SpellCastEffectName>T_Erosion_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>T_DrainLife_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.50</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>0</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="DreadGaze_Effect">
        <DisplayName>Dread Gaze</DisplayName>
        <Description>Attacking this unit causes the attacker to lose their next attack unless they resist.</Description>
        <Image>Ability_Blindness.png</Image>
        <IconFG>Ability_Blindness.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>ChanceToLoseNextTurn</Attribute>
            <DisplayName>Stunned</DisplayName>
            <Duration>2</Duration>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>35</AIPriority>
        </AIData>
        <CasterAnimationType>30</CasterAnimationType>
        <HitSoundFX>Spell_DreadGazeEffect_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_Stun_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1.0</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Earthquake">
        <DisplayName>Earthquake</DisplayName>
        <Description>Destroys random city improvements, resets the production queue and halves the population of the targeted city.</Description>
        <Image>S_Earthquake_Painting.png</Image>
        <IconFG>S_Earthquake_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>1</Cooldown>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>300</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>Earthquake</Attribute>
            <Radius>1</Radius>
        </GameModifier>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>Sacrifice</Attribute>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[CityPopulation] / 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <CameraShakeDuration>2.25</CameraShakeDuration>
        <CameraShakeStrength>0.25</CameraShakeStrength>
        <HitSoundFX>Spell_Earthquake_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Earthquake_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Embers">
        <DisplayName>Embers</DisplayName>
        <Description>Needles of fire shoot at an enemy for for 4 (+2 per level) fire damage.</Description>
        <FormattedDescription>Needles of fire shoot at an enemy for for %d fire damage.  This damage is halved if the victim resists.</FormattedDescription>
        <Image>T_FlameDart_Painting.png</Image>
        <IconFG>T_FlameDart_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] + [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] + [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FlameDart_01</HitSoundFX>
        <SpellCastSoundFX>Spell_FlameDartTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_FlameDart_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.30</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>800</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="EnchantedHammers">
        <DisplayName>Enchanted Hammers</DisplayName>
        <Description>Adds +1 Material to the city</Description>
        <Image>S_Inspiration_Painting.png</Image>
        <IconFG>S_EnchantedHammers_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>10</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>TileYieldMaterials</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>1</Value>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>120</AIPriority>
        </AIData>
        <HitSoundFX>Spell_EnchantedHammers_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_AuraofMight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Escape">
        <DisplayName>Escape</DisplayName>
        <Description>All units flee from the battlefield.</Description>
        <Image>T_Escape_Painting.png</Image>
        <IconFG>T_Escape_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Movement</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Movement</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>EscapeFromBattle</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Teleport_03</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Escape_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Escape_Ability">
        <DisplayName>Escape</DisplayName>
        <Description>All units flee from the battlefield.</Description>
        <Image>T_Escape_Painting.png</Image>
        <IconFG>T_Escape_Icon.png</IconFG>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Movement</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Movement</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>EscapeFromBattle</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Teleport_03</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Escape_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Evade">
        <DisplayName>Evade</DisplayName>
        <Description>Target unit gets +6 to Dodge (+2 per air shard).</Description>
        <Image>S_Evade_Painting.png</Image>
        <IconFG>S_Evade_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Air1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>10</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 6]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Evade_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Evade_Particle</EffectName>
            <LocalPosition>0,20,0</LocalPosition>
            <EffectScale>0.3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Eviscerate">
        <DisplayName>Eviscerate</DisplayName>
        <Description>Attack for an automatic critical hit.</Description>
        <IconFG>Ability_Eviscerate_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <ApproachTargetTile>1</ApproachTargetTile>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <UseWeaponRange>1</UseWeaponRange>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ChanceToCrit</StrVal>
            <ApplyToCaster>1</ApplyToCaster>
            <IsPreHitSpellModifier>1</IsPreHitSpellModifier>
            <Value>100</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DoubleStrike_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_DoubleStrike_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="EyesOfTheEagle">
        <DisplayName>Eyes of the Eagle</DisplayName>
        <Description>Reveals all areas within 6 tiles of the caster.</Description>
        <Image>S_EyesoftheEagle_Painting.png</Image>
        <IconFG>S_EyesoftheEagle_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Radius>6</Radius>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>12</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>Reveal</Attribute>
            <Duration>1</Duration>
            <Value>6</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_EyesOfTheEagle_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_EyesoftheEagle_Particle</EffectName>
            <LocalPosition>0,50,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="FallingStar">
        <DisplayName>Falling Star</DisplayName>
        <Description>Does 18 fire damage (+3 per air and fire shard) to all armies within 1 tile of the impact point.</Description>
        <Image>S_FallingStar_Painting.png</Image>
        <IconFG>S_FallingStar_Icon.png</IconFG>
        <Cooldown>1</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <UnitAppSpecifier>ApplyToAll</UnitAppSpecifier>
        <AlwaysPromptForCaster>0</AlwaysPromptForCaster>
        <CasterMustBeSov>1</CasterMustBeSov>
        <Radius>1</Radius>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>150</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards] + [UnitOwner_GetNumFireShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2] + 18]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>100</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FallingStar_01</HitSoundFX>
        <ModifierDelay>1</ModifierDelay>
        <WorldLightOverrideTime>4</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>0,0,0</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>35,50,48</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>22,116,176</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>17,212,164</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>S_FallingStar_Particle</EffectName>
            <LocalPosition>0, 0 ,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Fear_Ability">
        <DisplayName>Fear</DisplayName>
        <Description>All enemies are stunned for 3 actions unless they resist.</Description>
        <Image>S_CloakOfFear_Painting.png</Image>
        <IconFG>S_CloakOfFear_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>ChanceToLoseNextTurn</Attribute>
            <DisplayName>Afraid</DisplayName>
            <Duration>3</Duration>
            <Effect>E_Afraid_Particle</Effect>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FearWave_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Fear_Impact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>1</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_FearWave_Particle</EffectName>
            <LocalPosition>0,20,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_FearWave_Particle</EffectName>
            <LocalPosition>0,20,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Feedback">
        <DisplayName>Feedback</DisplayName>
        <Description>Disrupts a spell a unit is casting and does 6 fire damage (+3 per fire shard) unless they resist.</Description>
        <FormattedDescription>Disrupts a spell a unit is casting and does %d fire damage unless they resist.</FormattedDescription>
        <Image>S_Corruption_Painting.png</Image>
        <IconFG>T_Feedback_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyCaster</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>24</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>DisruptSpellCharge</Attribute>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] * 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 6]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 6]]></Expression>
            </Calculate>
        </GameModifier>
        <HitSoundFX>Spell_Feedback_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Corruption_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="FeedTheFire">
        <DisplayName>FeedTheFire</DisplayName>
        <Description>+2 Fire Attack.  Feed the Fire is stackable.</Description>
        <Image>S_BurningBlade_Painting.png</Image>
        <IconFG>T_FeedTheFire_Icon.png</IconFG>
        <CanStack>1</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>10</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Fire</StrVal>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Value>2</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>50</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FeedTheFire</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>
    <SpellDef InternalName="Fireball">
        <DisplayName>Fireball</DisplayName>
        <Description>Fireball does 18 (+4 per fire shard) fire damage to units within a 1 tile radius.</Description>
        <FormattedDescription>Fireball does %d fire damage to units within a 1 tile radius.</FormattedDescription>
        <Image>T_Fireball_Painting.png</Image>
        <IconFG>T_Fireball_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AllowFriendlyFireInRadius>1</AllowFriendlyFireInRadius>
        <IsResistable>1</IsResistable>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>50</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] * 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 18]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 9]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>75</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FireBallExplode_01</HitSoundFX>
        <SpellCastSoundFX>Spell_FireBall_01</SpellCastSoundFX>
        <SpellCastEffectName>T_Fireball_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>600</SpellCastProjectileSpeed>
        <WorldLightOverrideTime>3</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>20,20,20</WorldLightOverrideAmbiant>
        <WorldLightOverrideRim0>255,217,66</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>255,115,66</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>E_FireballExplosion_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Fireball_Ability">
        <DisplayName>Fireball</DisplayName>
        <Description>Fireball does 18 (+4 per fire shard) fire damage to units within a 1 tile radius.</Description>
        <FormattedDescription>Fireball does %d fire damage to units within a 1 tile radius.</FormattedDescription>
        <Image>T_Fireball_Painting.png</Image>
        <IconFG>T_Fireball_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AllowFriendlyFireInRadius>1</AllowFriendlyFireInRadius>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] * 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 18]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 9]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>75</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FireBallExplode_01</HitSoundFX>
        <SpellCastSoundFX>Spell_FireBall_01</SpellCastSoundFX>
        <SpellCastEffectName>T_Fireball_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>600</SpellCastProjectileSpeed>
        <WorldLightOverrideTime>3</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>20,20,20</WorldLightOverrideAmbiant>
        <WorldLightOverrideRim0>255,217,66</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>255,115,66</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>E_FireballExplosion_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="FireBreath">
        <DisplayName>Fire Breath</DisplayName>
        <Description>Target units in a 1 tile radius are enveloped in fire taking double the caster's attack strength in fire damage.</Description>
        <FormattedDescription>Target units in a 1 tile radius are enveloped in fire taking %d fire damage.</FormattedDescription>
        <IconFG>Ability_FireBreath_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <Range>3</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <SpellCastSoundFX>Spell_FireBreath</SpellCastSoundFX>
        <SpellCastEffectName>Y_Firebreath_Particle</SpellCastEffectName>
        <SpellCastEffectScale>2.0</SpellCastEffectScale>
    </SpellDef>
    <SpellDef InternalName="FireResistance">
        <DisplayName>Fire Resistance</DisplayName>
        <Description>The target takes half damage from fire.</Description>
        <Image>S_AnnointedByFire_Painting.png</Image>
        <IconFG>S_AnnointedByFire_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ResistFire</StrVal>
            <Duration>-1</Duration>
            <Value>50</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
    </SpellDef>
    <SpellDef InternalName="Firestorm">
        <DisplayName>Firestorm</DisplayName>
        <Description>All units in target army take 8 fire damage (+4 per fire shard).  Firestorm leaves a fire raging in the affected tile for 10 turns.</Description>
        <Image>S_Firestorm_Painting.png</Image>
        <IconFG>S_Firestorm_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>1</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <TargetUnitsCanBeStationed>0</TargetUnitsCanBeStationed>
        <UnitAppSpecifier>ApplyToAll</UnitAppSpecifier>
        <Radius>0</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>200</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>CreateWorldProp</Attribute>
            <StrVal>TD_Groundfire</StrVal>
            <Duration>10</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <ApplyToTile>1</ApplyToTile>
            <Duration>0</Duration>
            <DurationOnTile>10</DurationOnTile>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetTroopCount] * 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>PlaceTerrain</Attribute>
            <TerrainType>BurningLands</TerrainType>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>80</AIPriority>
        </AIData>
        <HitSoundFX>Spell_RainofFire_03</HitSoundFX>
        <ModifierDelay>1.1</ModifierDelay>
        <SpellDefEffect>
            <EffectName>S_Firestorm_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.5</EffectScale>
            <EffectDelay>1</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="FirstAid">
        <DisplayName>First Aid</DisplayName>
        <Description>Heals target unit by 2 per level of the caster.</Description>
        <FormattedDescription>Heals target unit by %d.</FormattedDescription>
        <Image>T_Heal_Painting.png</Image>
        <IconFG>Ability_FirstAid_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Heal</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Heal</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <Range>1</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Spell_FirstAid</Attribute>
        </Prereq>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[ [Unit_GetLevel] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_BonusHealing]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        <ValueCalcWrapper>
            <ValueType>IsTargetWorthy</ValueType>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetHPCurrent]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] < 30]]></Expression>
            </Calculate>
        </ValueCalcWrapper>
        </AIData>
        <HitSoundFX>Spell_Heal_01</HitSoundFX>
        <HitSoundFX>Spell_Heal_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Heal_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="FlameDart">
        <DisplayName>Flame Dart</DisplayName>
        <Description>A fiery dart strikes for double the caster's level (+2 per fire shard) in fire damage.</Description>
        <FormattedDescription>A fiery dart strikes for %d fire damage.</FormattedDescription>
        <Image>T_FlameDart_Painting.png</Image>
        <IconFG>T_FlameDart_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>3</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>24</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] + [Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2] * 2]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] + [Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FlameDart_01</HitSoundFX>
        <SpellCastSoundFX>Spell_FlameDartTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_FlameDart_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.30</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>800</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>E_FlameDartImpact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="FlameDart_Ability">
        <DisplayName>Flame Dart</DisplayName>
        <Description>A fiery dart strikes for double the caster's level (+2 per fire shard) in fire damage.</Description>
        <FormattedDescription>A fiery dart strikes for %d fire damage.</FormattedDescription>
        <IconFG>T_FlameDart_Icon.png</IconFG>
        <Cooldown>3</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] + [Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2] * 2]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] + [Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FlameDart_01</HitSoundFX>
        <SpellCastSoundFX>Spell_FlameDartTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_FlameDart_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.30</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>800</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>E_FlameDartImpact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="FlameDart_Adept">
        <DisplayName>Flame Dart</DisplayName>
        <Description>A fiery dart strikes for double the caster's level (+2 per fire shard) in fire damage.</Description>
        <FormattedDescription>A fiery dart strikes for %d fire damage.</FormattedDescription>
        <Image>T_FlameDart_Painting.png</Image>
        <IconFG>T_FlameDart_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>3</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>FireAdept2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>24</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] + [Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2] * 2]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] + [Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FlameDart_01</HitSoundFX>
        <SpellCastSoundFX>Spell_FlameDartTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_FlameDart_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.30</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>800</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>E_FlameDartImpact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="FlameTongue">
        <DisplayName>Flame Tongue</DisplayName>
        <Description>Does 2 fire damage per level to the victim.  This damage is multiplied by the number of casting units.</Description>
        <FormattedDescription>Does %d fire damage to the victim.</FormattedDescription>
        <IconFG>Ability_FlameTongue_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Range>1</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetTroopCount]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * [Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] * [Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetTroopCount]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * [Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <SpellCastSoundFX>Spell_FlameTongue</SpellCastSoundFX>
        <SpellCastEffectName>T_FlameTongue_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
    </SpellDef>
    <SpellDef InternalName="FlameWave">
        <DisplayName>Flame Wave</DisplayName>
        <Description>Brings forth a wave of flame that causes 4 (+2 per fire shard) fire damage to all enemy units.</Description>
        <FormattedDescription>Brings forth a wave of flame that causes %d fire damage to all enemy units.</FormattedDescription>
        <Image>U_Inferno_Painting.png</Image>
        <IconFG>T_Flamewave_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>80</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FlameWaveTravel_01</HitSoundFX>
        <HitSoundFX>Spell_FlameWaveTravel_02</HitSoundFX>
        <ModifierDelay>0.3</ModifierDelay>
        <WorldLightOverrideTime>4</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>20,0,0</WorldLightOverrideAmbiant>
        <WorldLightOverrideRim0>255,210,52</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>240,95,19</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>E_FlameWave_Impact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>1</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_FlameWave_Particle</EffectName>
            <LocalPosition>0,20,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Focus">
        <DisplayName>Focus</DisplayName>
        <Description>The caster gets +25% Attack and spell damage for the rest of the battle.</Description>
        <Image>T_Focus_Painting.png</Image>
        <IconFG>T_Focus_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>4</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <DisplayName>Focus</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Focused_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack] / 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_SpellDamage</StrVal>
            <Duration>-1</Duration>
            <Value>25</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>25</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Focus_01</HitSoundFX>
        <SpellCastEffectName>T_Focus_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
    </SpellDef>
    <SpellDef InternalName="Focus_Adept">
        <DisplayName>Focus</DisplayName>
        <Description>The caster gets +25% Attack and spell damage for the rest of the battle.</Description>
        <Image>T_Focus_Painting.png</Image>
        <IconFG>T_Focus_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>FireAdept3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>4</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <DisplayName>Focus</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Focused_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack] / 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_SpellDamage</StrVal>
            <Duration>-1</Duration>
            <Value>25</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>25</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Focus_01</HitSoundFX>
        <SpellCastEffectName>T_Focus_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
    </SpellDef>
    <SpellDef InternalName="Fortify">
        <DisplayName>Fortify</DisplayName>
        <Description>Fortify a tile, which gives units in that tile +10 to Accuracy and +20 to Dodge.</Description>
        <Image>Ability_Fortify_Icon.png</Image>
        <IconFG>Ability_Fortify_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyTerritory</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <Range>0</Range>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>CreateWorldProp</Attribute>
            <StrVal>P_Fortify_01</StrVal>
            <DurationOnTile>-1</DurationOnTile>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Accuracy</StrVal>
            <ApplyFromTileAtTacticalTurnStart>0</ApplyFromTileAtTacticalTurnStart>
            <ApplyToTile>1</ApplyToTile>
            <Duration>-1</Duration>
            <DurationOnTile>-1</DurationOnTile>
            <RemoveWhenTargetLeavesTile>1</RemoveWhenTargetLeavesTile>
            <Value>10</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <ApplyFromTileAtTacticalTurnStart>0</ApplyFromTileAtTacticalTurnStart>
            <ApplyToTile>1</ApplyToTile>
            <Duration>-1</Duration>
            <DurationOnTile>-1</DurationOnTile>
            <RemoveWhenTargetLeavesTile>1</RemoveWhenTargetLeavesTile>
            <Value>20</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Fortify_01</HitSoundFX>
        <HitSoundFX>Spell_Fortify_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_AuraofMight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Fracture">
        <DisplayName>Fracture</DisplayName>
        <Description>Target unit loses 25% of his Hit Points and Defense unless they resist.</Description>
        <Image>T_Sunder_Painting.png</Image>
        <IconFG>T_Fracture_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetHPCurrent] / 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * -1]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Defense_Pierce] / 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * -1]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        <ValueCalcWrapper>
            <ValueType>IsTargetWorthy</ValueType>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetHPCurrent]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] > 40]]></Expression>
            </Calculate>
        </ValueCalcWrapper>
        </AIData>
        <HitSoundFX>Spell_FractureImpact_01</HitSoundFX>
        <SpellCastSoundFX>Spell_FractureTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_ManaBlast_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>T_ManaBlastImpact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Freeze">
        <DisplayName>Freeze</DisplayName>
        <Description>Target enemy army is -2 Initiative (-1 per water shard) and immobilized for 3 seasons (including current season). Must be cast in your territory.</Description>
        <Image>S_Freeze_Painting.png</Image>
        <IconFG>S_Freeze_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <SpellTargetZOCType>Friendly</SpellTargetZOCType>
        <UnitAppSpecifier>ApplyToAll</UnitAppSpecifier>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Water2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>15</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <Duration>3</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] - 2]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>Immobilize</Attribute>
            <Duration>3</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>50</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FreezeGroup_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Freeze_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="FrozenBones">
        <DisplayName>Frozen Bones</DisplayName>
        <Description>Target city is crippled with an unnatural coldness slowing stationed units and reducing their Initiative by 3.</Description>
        <Image>S_Snowfall_Painting.png</Image>
        <IconFG>S_FrozenBones_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>1</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityCurse</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Hydromancy</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>200</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>AdjustDefendingUnit</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <Duration>-1</Duration>
            <Value>-3</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>30</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FrozenBones_01</HitSoundFX>
        <SpellCastEffectName>Brilliance</SpellCastEffectName>
        <SpellCastEffectScale>0.4</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>S_Blight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="GamblersStrike">
        <DisplayName>Gambler's Strike</DisplayName>
        <Description>Attack that has a 50% chance to do triple damage and a 50% chance to miss.</Description>
        <IconFG>Ability_GamblersStrike_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AppliesRandomModifier>1</AppliesRandomModifier>
        <ApproachTargetTile>1</ApproachTargetTile>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <UseWeaponRange>1</UseWeaponRange>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <Multiplier>3</Multiplier>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <DisplayName>Miss</DisplayName>
            <Value>0</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <CasterAnimationType>29</CasterAnimationType>
        <HitSoundFX>Spell_GamblersStrike_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_GamblersStrike_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="GentleRain">
        <DisplayName>Gentle Rain</DisplayName>
        <Description>Target city produces 25% more food per Essence.</Description>
        <Image>S_GentleRain_Painting.png</Image>
        <IconFG>S_GentleRain_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Hydromancy</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>25</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>ResourceMultiplier</ModType>
            <Attribute>Food</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[TileYieldEssence] * 0.25]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 1]]></Expression>
            </Calculate>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_GentleRain_01</HitSoundFX>
        <SpellCastEffectName>Brilliance</SpellCastEffectName>
        <SpellCastEffectScale>.4</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>S_Inspiration_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0.5</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="GhostTouch">
        <DisplayName>Ghost Touch</DisplayName>
        <Description>Anyone who strikes the caster takes 1 damage.</Description>
        <IconFG>Ability_StaticBlast_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Value>-1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <HitSoundFX>Equip_MagicRing_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_DrainLife_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.50</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>0</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="GiantForm">
        <DisplayName>Giant Form</DisplayName>
        <Description>Doubles the target unit's Attack.</Description>
        <Image>T_Growth_Painting.png</Image>
        <IconFG>T_GiantForm_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Pierce</StrVal>
            <Duration>-1</Duration>
            <Multiplier>2</Multiplier>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_TacticalScaleMultiplier</StrVal>
            <DisplayName>Grown</DisplayName>
            <Duration>-1</Duration>
            <Value>2</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_Growth_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Growth_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.35</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="GiftOfIron">
        <DisplayName>Gift of Iron</DisplayName>
        <Description>All allied units have their Defense raised by 5 (+2 per earth shard).</Description>
        <FormattedDescription>All allied units have their Defense raised by %d.</FormattedDescription>
        <Image>T_Stoneskin_Painting.png</Image>
        <IconFG>T_GiftOfIron_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Geomancy</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>45</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_GiftOfIron_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_StoneSkin_Particle</EffectName>
            <LocalPosition>0,25,0</LocalPosition>
            <EffectScale>.4</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="GlyphOfLife">
        <DisplayName>Glyph of Life</DisplayName>
        <Description>Defending units start with regeneration (they heal 1 hit point per turn).</Description>
        <Image>S_GlyphofLife_Painting.png</Image>
        <IconFG>S_GlyphofLife_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Life2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>BattleAutoCastSpell</Attribute>
            <StrVal>MassRegeneration</StrVal>
            <Duration>-1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>50</AIPriority>
        </AIData>
        <HitSoundFX>Spell_GlyphOfLife_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_GlyphofLife_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Graveseal">
        <DisplayName>Graveseal</DisplayName>
        <Description>Target unit suffers critical hits from all attacks unless he resists.</Description>
        <Image>T_Graveseal_Painting.png</Image>
        <IconFG>T_Graveseal_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>Graveseal</Attribute>
            <Duration>-1</Duration>
            <Effect>E_Graveseal_Particle</Effect>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</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_Graveseal_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Graveseal_Particle</EffectName>
            <LocalPosition>0,40,0</LocalPosition>
            <EffectScale>0.7</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="GripOfWinter">
        <DisplayName>Grip of Winter</DisplayName>
        <Description>Halts training and construction in target players cities, and halves the rate that player gathers resources.</Description>
        <Image>S_GripofWinter_Painting.png</Image>
        <IconFG>S_GripofWinter_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <Cooldown>25</Cooldown>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityCurse</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Water5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>100</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>15</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Player</ModType>
            <Attribute>DisableTraining</Attribute>
            <Duration>-1</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Player</ModType>
            <Attribute>DisableBuilding</Attribute>
            <Duration>-1</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Player</ModType>
            <Attribute>TotalHarvestMultiplier</Attribute>
            <Duration>-1</Duration>
            <Value>0.5</Value>
        </GameModifier>
        <GameModifier>
            <ModType>City</ModType>
            <Duration>-1</Duration>
            <Effect>E_GripofWinter_Particle</Effect>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>85</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Grip_of_Winter</HitSoundFX>
        <WorldLightOverrideTime>6</WorldLightOverrideTime>
        <WorldLightOverrideDiffuse>135,150,148</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>22,116,176</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>17,212,164</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>S_GripofWinter_Particle</EffectName>
            <LocalPosition>0,25,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Growth">
        <DisplayName>Growth</DisplayName>
        <Description>Target unit gets +50% to Attack and halves Dodge.</Description>
        <Image>T_Growth_Painting.png</Image>
        <IconFG>T_Growth_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Life3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>16</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Pierce</StrVal>
            <Duration>-1</Duration>
            <Multiplier>1.5</Multiplier>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <Duration>-1</Duration>
            <Multiplier>0.5</Multiplier>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_TacticalScaleMultiplier</StrVal>
            <DisplayName>Grown</DisplayName>
            <Duration>-1</Duration>
            <Value>1.5</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>30</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_Growth_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Growth_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.35</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Growth_Adept">
        <DisplayName>Growth</DisplayName>
        <Description>Target unit gets +50% to Attack and halves Dodge.</Description>
        <Image>T_Growth_Painting.png</Image>
        <IconFG>T_Growth_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>LifeAdept3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>16</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Pierce</StrVal>
            <Duration>-1</Duration>
            <Multiplier>1.5</Multiplier>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <Duration>-1</Duration>
            <Multiplier>0.5</Multiplier>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_TacticalScaleMultiplier</StrVal>
            <DisplayName>Grown</DisplayName>
            <Duration>-1</Duration>
            <Value>1.5</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>30</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_Growth_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Growth_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.35</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Growth_Self">
        <DisplayName>Growth</DisplayName>
        <Description>Target unit gets +50% to Attack and halves Dodge.</Description>
        <Image>T_Growth_Painting.png</Image>
        <IconFG>T_Growth_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Pierce</StrVal>
            <Duration>-1</Duration>
            <Multiplier>1.5</Multiplier>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <Duration>-1</Duration>
            <Multiplier>0.5</Multiplier>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_TacticalScaleMultiplier</StrVal>
            <DisplayName>Grown</DisplayName>
            <Duration>-1</Duration>
            <Value>1.5</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>30</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Growth_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Growth_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.35</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Guard">
        <DisplayName>Guard</DisplayName>
        <Description>Add your Defense to that of targeted allies and puts the caster in defensive mode.</Description>
        <FormattedDescription>Add %d Defense to targeted allies.</FormattedDescription>
        <IconFG>Ability_Guard_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <ApproachTargetTile>1</ApproachTargetTile>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsCastable>0</IsCastable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <RadiusType>ADJACENT</RadiusType>
        <Range>1</Range>
        <Prereq>
            <Type>UnitStat</Type>
            <Attribute>UnitStat_Defense_Pierce</Attribute>
            <Value>1</Value>
        </Prereq>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <DisplayName>Guarded</DisplayName>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_Defense_Pierce]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] - [UnitStat_Tactical_Auto_Defense_Boost]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <ApplyToCaster>1</ApplyToCaster>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Effect>Y_Defend_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_Tactical_Auto_Defense_Boost]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
            <AIMinSpellTargets>3</AIMinSpellTargets>
        </AIData>
        <HitSoundFX>Spell_Wind_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_Ability_Guard</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="GuardedStrike">
        <DisplayName>Guarded Strike</DisplayName>
        <Description>A defensive strike for half normal damage that leaves the attacker defending.</Description>
        <IconFG>Ability_GuardedStrike_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <ApproachTargetTile>1</ApproachTargetTile>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <UseWeaponRange>1</UseWeaponRange>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack] * 0.5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <ApplyToCaster>1</ApplyToCaster>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Effect>Y_Defend_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_Tactical_Auto_Defense_Boost]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DoubleStrike_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_DoubleStrike_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="GuardianWind">
        <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>Air2</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">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_GuardianWind_01</HitSoundFX>
    </SpellDef>
    <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">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_GuardianWind_01</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="GustOfWind">
        <DisplayName>Gust of Wind</DisplayName>
        <Description>A gust of wind blows 3 adjacent enemies next to the caster back a tile and, unless they resist, knocks them prone.</Description>
        <Image>T_TitansBreath_Painting.png</Image>
        <IconFG>T_GustofWind_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Radius>1</Radius>
        <RadiusType>ADJACENT</RadiusType>
        <Range>1</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Aeromancy</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>20</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetMovesBack</Attribute>
            <Value>1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetMovesBack</Attribute>
            <IsForSpellResist>1</IsForSpellResist>
            <Value>1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetKnockedProne</Attribute>
            <Duration>1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>25</AIPriority>
            <AIMinSpellTargets>2</AIMinSpellTargets>
        </AIData>
        <HitSoundFX>Spell_Knockback_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_GustofWind_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.25</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="GustOfWind_Ability">
        <DisplayName>Gust of Wind</DisplayName>
        <Description>A gust of wind blows 3 adjacent enemies next to the caster back a tile and, unless they resist, knocks them prone.</Description>
        <Image>T_TitansBreath_Painting.png</Image>
        <IconFG>T_GustofWind_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Radius>1</Radius>
        <RadiusType>ADJACENT</RadiusType>
        <Range>1</Range>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetMovesBack</Attribute>
            <IsForSpellResist>2</IsForSpellResist>
            <Value>1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetMovesBack</Attribute>
            <IsForSpellResist>1</IsForSpellResist>
            <Value>1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetKnockedProne</Attribute>
            <Duration>1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>25</AIPriority>
            <AIMinSpellTargets>2</AIMinSpellTargets>
        </AIData>
        <HitSoundFX>Spell_Knockback_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_GustofWind_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.25</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Haste">
        <DisplayName>Haste</DisplayName>
        <Description>Target unit is +3 to Initiative (+1 per air shard).</Description>
        <FormattedDescription>Target unit is +%d to Initiative.</FormattedDescription>
        <Image>T_Haste_Painting.png</Image>
        <IconFG>T_Haste_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <PreventStackingWith>Haste_Adept</PreventStackingWith>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Air1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>5</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <DisplayName>Hasted</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Celerity_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</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_Haste_01</HitSoundFX>
        <HitSoundFX>Spell_Haste_02</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="Haste_Adept">
        <DisplayName>Haste</DisplayName>
        <Description>Target unit is +3 to Initiative (+1 per air shard).</Description>
        <FormattedDescription>Target unit is +%d to Initiative.</FormattedDescription>
        <Image>T_Haste_Painting.png</Image>
        <IconFG>T_Haste_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <PreventStackingWith>Haste</PreventStackingWith>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>AirAdept1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>5</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <DisplayName>Hasted</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Celerity_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</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_Haste_01</HitSoundFX>
        <HitSoundFX>Spell_Haste_02</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="Heal">
        <DisplayName>Heal</DisplayName>
        <Description>Heals target unit by 16 (+2 per life shard).</Description>
        <FormattedDescription>Heals target unit by %d.</FormattedDescription>
        <Image>T_Heal_Painting.png</Image>
        <IconFG>T_Heal_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Heal</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Heal</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Life2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>12</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumLifeShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 16]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_BonusHealing]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        <ValueCalcWrapper>
            <ValueType>IsTargetWorthy</ValueType>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetHPCurrent]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] < 30]]></Expression>
            </Calculate>
        </ValueCalcWrapper>
        </AIData>
        <HitSoundFX>Spell_Heal_01</HitSoundFX>
        <HitSoundFX>Spell_Heal_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Heal_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Heal_Adept">
        <DisplayName>Heal</DisplayName>
        <Description>Heals target unit by 16 (+2 per life shard).</Description>
        <FormattedDescription>Heals target unit by %d.</FormattedDescription>
        <Image>T_Heal_Painting.png</Image>
        <IconFG>T_Heal_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Heal</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Heal</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>LifeAdept2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>12</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumLifeShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 16]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_BonusHealing]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        <ValueCalcWrapper>
            <ValueType>IsTargetWorthy</ValueType>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetHPCurrent]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] < 30]]></Expression>
            </Calculate>
        </ValueCalcWrapper>
        </AIData>
        <HitSoundFX>Spell_Heal_01</HitSoundFX>
        <HitSoundFX>Spell_Heal_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Heal_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="HealingLight">
        <DisplayName>Healing Light</DisplayName>
        <Description>Heals 8 hit points (+2 per level) to all allies within 1 tile.</Description>
        <FormattedDescription>Heals %d hit points to all allies within 1 tile.</FormattedDescription>
        <IconFG>T_HealingLight_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Heal</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Heal</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <AllowFriendlyFireInRadius>0</AllowFriendlyFireInRadius>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <Range>0</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_BonusHealing]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Wellspring_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_HealingLight_Particle</EffectName>
            <LocalPosition>0,65,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>E_Regeneration_NoLoop_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="HeartOfFire">
        <DisplayName>Heart of Fire</DisplayName>
        <Description>All units trained in this city get +1 Fire Attack per Essence.</Description>
        <Image>S_BurningBlade_Painting.png</Image>
        <IconFG>S_HeartOfFire_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Other</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>100</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>CityTrainingBonus</ModType>
            <Attribute>TrainingBonus_ApplyUnitModifier_Add</Attribute>
            <StrVal>UnitStat_Attack_Fire</StrVal>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[TileYieldEssence]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_AuraOfMight_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_AuraofMight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Hobble">
        <DisplayName>Hobble</DisplayName>
        <Description>Attack that also reduces the target unit's Move by 1 for 3 turns unless they resist.</Description>
        <Image>Ability_Slow.png</Image>
        <IconFG>Ability_Slow.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <UseWeaponRange>1</UseWeaponRange>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Moves</StrVal>
            <Duration>3</Duration>
            <Value>-1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</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_Hobble_01</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="HoldTheLine">
        <DisplayName>Hold the Line</DisplayName>
        <Description>All allied units start defending and get +20 Dodge until their next action</Description>
        <IconFG>Ability_HoldTheLine_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Spell_HoldTheLine</Attribute>
        </Prereq>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Value>20</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Effect>Y_Defend_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_Tactical_Auto_Defense_Boost]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BattleCry_01</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="HorrificWail">
        <DisplayName>Horrific Wail</DisplayName>
        <Description>All enemy units take 2 damage per level of the caster unless they resist.</Description>
        <FormattedDescription>All enemy units take %d damage unless they resist.</FormattedDescription>
        <Image>T_Confusion_Painting.png</Image>
        <IconFG>T_HorrificWail_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <CastTime>2</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Necromancy2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>36</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * -2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>30</AIPriority>
        </AIData>
        <HitSoundFX>Spell_HorrificWailImpact_01</HitSoundFX>
        <SpellCastSoundFX>Spell_HorrificWailTravel_01</SpellCastSoundFX>
        <SpellDefEffect>
            <EffectName>T_HorrificWail_Impact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>1</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_HorrificWail_Particle</EffectName>
            <LocalPosition>0,20,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="HorrificWail_Ability">
        <DisplayName>Horrific Wail</DisplayName>
        <Description>All enemy units take 2 damage per level of the caster unless they resist.</Description>
        <FormattedDescription>All enemy units take %d damage unless they resist.</FormattedDescription>
        <Image>T_Confusion_Painting.png</Image>
        <IconFG>T_HorrificWail_Icon.png</IconFG>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * -2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>100</AIPriority>
        </AIData>
        <HitSoundFX>Spell_HorrificWailImpact_01</HitSoundFX>
        <SpellCastSoundFX>Spell_HorrificWailTravel_01</SpellCastSoundFX>
        <SpellDefEffect>
            <EffectName>T_HorrificWail_Impact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>1</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_HorrificWail_Particle</EffectName>
            <LocalPosition>0,20,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Howl">
        <DisplayName>Howl</DisplayName>
        <Description>All allied units get +1 Attack per Level of the Caster for the rest of the battle.</Description>
        <FormattedDescription>All allied units get +%d Attack for the rest of the battle.</FormattedDescription>
        <Image>T_Berzerk_Painting.png</Image>
        <IconFG>Ability_Howl_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>99</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <DisplayName>Enraged</DisplayName>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>50</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Howl_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Berserk_Particle</EffectName>
            <LocalPosition>0,35,0</LocalPosition>
            <EffectScale>0.7</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="HurlBoulder">
        <DisplayName>Hurl Boulder</DisplayName>
        <Description>Launches a boulder for 8 damage (+1 per earth shard).</Description>
        <FormattedDescription>Launches a boulder for %d damage.</FormattedDescription>
        <Image>T_Shockwave_Painting.png</Image>
        <IconFG>T_HurlBoulder_Icon.png</IconFG>
        <Cooldown>3</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <CanBeDodged>1</CanBeDodged>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>6</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Fireball_01</HitSoundFX>
        <SpellCastSoundFX>CatapultToss1_M</SpellCastSoundFX>
        <SpellCastEffectName>Catapult_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.9</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>500</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="HurlBoulder_Ability">
        <DisplayName>Hurl Boulder</DisplayName>
        <Description>Launches a boulder for 8 damage (+1 per level).</Description>
        <FormattedDescription>Launches a boulder for %d damage.</FormattedDescription>
        <Image>T_Shockwave_Painting.png</Image>
        <IconFG>T_HurlBoulder_Icon.png</IconFG>
        <Cooldown>3</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Fireball_01</HitSoundFX>
        <SpellCastSoundFX>CatapultToss1_M</SpellCastSoundFX>
        <SpellCastEffectName>Catapult_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.9</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>500</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="HurlBoulder_Adept">
        <DisplayName>Hurl Boulder</DisplayName>
        <Description>Launches a boulder for 8 damage (+1 per earth shard).</Description>
        <FormattedDescription>Launches a boulder for %d damage.</FormattedDescription>
        <Image>T_Shockwave_Painting.png</Image>
        <IconFG>T_HurlBoulder_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>3</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <CanBeDodged>1</CanBeDodged>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>EarthAdept1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>6</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Fireball_01</HitSoundFX>
        <SpellCastSoundFX>CatapultToss1_M</SpellCastSoundFX>
        <SpellCastEffectName>Catapult_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.9</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>500</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="Impale_Ability">
        <DisplayName>Impale</DisplayName>
        <Description>Stikes the target unit and the one behind him.</Description>
        <FormattedDescription>Stikes the target unit and the one behind him for a %d Attack.</FormattedDescription>
        <IconFG>Ability_Impale_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <RadiusType>LINE_FORWARD</RadiusType>
        <Range>1</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack] * [UnitStat_BonusImpale]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
            <AIMinSpellTargets>2</AIMinSpellTargets>
        </AIData>
        <HitSoundFX>Ability_Impale</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="Imprison">
        <DisplayName>Imprison</DisplayName>
        <Description>Target enemy is immobilized for 5 rounds and takes 5 damage per round, unless they resist.</Description>
        <Image>Ability_TangledWeb_Icon.png</Image>
        <IconFG>T_Imprison_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_Moves</StrVal>
            <DisplayName>Imprisoned</DisplayName>
            <Duration>5</Duration>
            <Effect>E_Imprison_Particle</Effect>
            <PerTurn>1</PerTurn>
            <Value>0</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <Duration>5</Duration>
            <PerTurn>1</PerTurn>
            <Value>0</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Duration>5</Duration>
            <PerTurn>1</PerTurn>
            <Value>-5</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Imprison</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_TangledWeb_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1.5</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="IncinerateCity">
        <DisplayName>Incinerate City</DisplayName>
        <Description>Random Fire Storms plague the city weakening stationed units (-1 Hit Point per unit). Additional casts will increase the effect.</Description>
        <Image>S_Antipathy_Painting.png</Image>
        <IconFG>S_IncinerateCity_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>1</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityCurse</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyCity</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Pyromancy</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>200</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>AdjustDefendingUnit</Attribute>
            <StrVal>UnitStat_HitPoints</StrVal>
            <Duration>-1</Duration>
            <Value>-1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>30</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DarkEnchant_01</HitSoundFX>
        <SpellCastEffectName>Brilliance</SpellCastEffectName>
        <SpellCastEffectScale>0.4</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>S_Blight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="IneluctableVision">
        <DisplayName>Ineluctable Vision</DisplayName>
        <Description>Reveals the entire map, for as long as the maintenance cost is paid.</Description>
        <Image>S_IneluctableVision_Painting.png</Image>
        <IconFG>S_IneluctableVision_Icon.png</IconFG>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>280</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>5</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Player</ModType>
            <Attribute>UnhideFOW</Attribute>
            <Duration>-1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_IneluctableVision_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_IneluctableVision_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Infection">
        <DisplayName>Infection</DisplayName>
        <Description>Each turn negative spells affecting target unit spread to all allied units.</Description>
        <Image>T_Infection_Painting.png</Image>
        <IconFG>T_Infection_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>8</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>InfectNearbyAlliesWith</Attribute>
            <StrVal>SpellSubClass</StrVal>
            <StrVal2>Debuff</StrVal2>
            <DisplayName>Infected</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Infection_Particle</Effect>
            <PerTurn>1</PerTurn>
            <Radius>-1</Radius>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</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_Infection_01</HitSoundFX>
        <HitSoundFX>Spell_Infection_02</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="InfernalCovenant">
        <DisplayName>Infernal Covenant</DisplayName>
        <Description>Sacrifice a champion to transform him into a Death Demon for that battle.  The higher level the champion, the more powerful the death demon will be.</Description>
        <Image>T_InfernalCovenant_Painting.png</Image>
        <IconFG>T_InfernalCovenant_Icon.png</IconFG>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyChampion</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>PermanentDeath</Attribute>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Death Demon</StrVal>
            <UnitClass>DeathDemon</UnitClass>
            <ApplyIfSpellTargetKilled>1</ApplyIfSpellTargetKilled>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetLevel] + 7]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetHPCurrent] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Teleport_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_InfernalCovenant_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Inferno">
        <DisplayName>Inferno</DisplayName>
        <Description>Target tile is on fire for 30 turns, walking through the tile causes 5 damage to each member of the group.</Description>
        <Image>U_Inferno_Painting.png</Image>
        <IconFG>U_Inferno_Icon.png</IconFG>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyTerritory</SpellTargetType>
        <SpellTargetTileOccupied>EnemyOrEmpty</SpellTargetTileOccupied>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>CreateWorldProp</Attribute>
            <StrVal>TD_Groundfire</StrVal>
            <Duration>30</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <ApplyToTile>1</ApplyToTile>
            <Duration>0</Duration>
            <DurationOnTile>30</DurationOnTile>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetTroopCount] * 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Inferno_01</HitSoundFX>
        <HitSoundFX>Spell_Inferno_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>U_Inferno_Particle</EffectName>
            <LocalPosition>0, 0 ,0</LocalPosition>
            <EffectScale>0.50</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Inferno_Ability">
        <DisplayName>Inferno</DisplayName>
        <Description>Tiles within 1 radius burn for 5 turns, walking through the tile causes 5 Fire damage.</Description>
        <Image>U_Inferno_Painting.png</Image>
        <IconFG>U_Inferno_Icon.png</IconFG>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>FriendlyTerritory</SpellTargetType>
        <SpellTargetTileOccupied>EnemyOrEmpty</SpellTargetTileOccupied>
        <Radius>1</Radius>
        <Range>0</Range>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>CreateWorldProp</Attribute>
            <StrVal>TD_Groundfire</StrVal>
            <Duration>5</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <ApplyToTile>1</ApplyToTile>
            <Duration>0</Duration>
            <DurationOnTile>5</DurationOnTile>
            <Value>5</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Inferno_01</HitSoundFX>
        <HitSoundFX>Spell_Inferno_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>U_Inferno_Particle</EffectName>
            <LocalPosition>0, 0 ,0</LocalPosition>
            <EffectScale>0.50</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="InnerFire">
        <DisplayName>Inner Fire</DisplayName>
        <Description>A fiery dart strikes for double the caster's level in fire damage.  If the unit is killed a Cindercorpse is raised in their place.</Description>
        <FormattedDescription>A fiery dart strikes for %d fire damage.</FormattedDescription>
        <IconFG>T_Soulburning_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>Skeleton_Burning</UnitClass>
            <ApplyIfSpellTargetKilled>1</ApplyIfSpellTargetKilled>
            <Duration>-1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FlameDart_01</HitSoundFX>
        <SpellCastSoundFX>Spell_FlameDartTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_FlameDart_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.30</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>800</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>E_FlameDartImpact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Inspiration">
        <DisplayName>Inspiration</DisplayName>
        <Description>Produces +1 Research in the enchanted city.</Description>
        <Image>S_Inspiration_Painting.png</Image>
        <IconFG>S_Inspiration_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Water1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>15</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Research</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>1</Value>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>100</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Inspiration_01</HitSoundFX>
        <SpellCastEffectName>Brilliance</SpellCastEffectName>
        <SpellCastEffectScale>.4</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>S_Inspiration_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0.5</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Invincible">
        <DisplayName>Invincible</DisplayName>
        <Description>Caster is immune to Physical damage until their next attack.</Description>
        <IconFG>Ability_Invincible_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ResistPierce</StrVal>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Value>100</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Effect>Y_Defend_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_Tactical_Auto_Defense_Boost]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ManaShield_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_ManaShield_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.6</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Kill">
        <DisplayName>Kill</DisplayName>
        <Description>Target unit dies, unless they resist.</Description>
        <Image>T_TouchofEntropy_Painting.png</Image>
        <IconFG>T_Kill_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>2</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>300</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetHPCurrent] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        <ValueCalcWrapper>
            <ValueType>IsTargetWorthy</ValueType>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetHPCurrent]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] > 30]]></Expression>
            </Calculate>
        </ValueCalcWrapper>
        </AIData>
        <HitSoundFX>Spell_CullTheWeak_01</HitSoundFX>
        <SpellCastSoundFX>Spell_CullTheWeakCast_01</SpellCastSoundFX>
        <SpellCastEffectName>T_Erosion_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>S_StealSpirit_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Knockback_Effect">
        <DisplayName>Knockback Effect</DisplayName>
        <Description>Knocks victims back 2 tiles unless they resist.</Description>
        <IconFG>T_TitansBreath_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsResistable>1</IsResistable>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetMovesBack</Attribute>
            <Value>2</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Knockback_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_TitansBreath_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.25</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="LightningBolt">
        <DisplayName>Lightning Bolt</DisplayName>
        <Description>Does 8 (+2 per Level) Lightning damage to all units in a line 5 tiles long.</Description>
        <FormattedDescription>Does %d Lightning damage to all units in a line 5 tiles long.</FormattedDescription>
        <Image>AirCrystal_Medallion.png</Image>
        <IconFG>T_ChainLightning_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsResistable>1</IsResistable>
        <Radius>5</Radius>
        <RadiusType>LINE_BACKWARD</RadiusType>
        <Range>5</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Aeromancy</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>25</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>75</AIPriority>
            <AIMinSpellTargets>2</AIMinSpellTargets>
        </AIData>
        <HitSoundFX>Spell_Storm_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_StaticBlast_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="LightningForm">
        <DisplayName>Lightning Form</DisplayName>
        <Description>Teleport through enemies in a straight line, dealing Lightning damage equal to your attack to any in your way.</Description>
        <FormattedDescription>Teleport through enemies in a straight line, dealing %d Lightning Attack to any in your way.</FormattedDescription>
        <IconFG>Ability_LightningForm_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <SpellTargetTileOccupied>Empty</SpellTargetTileOccupied>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <Radius>5</Radius>
        <RadiusType>LINE_BACKWARD</RadiusType>
        <Range>5</Range>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>TransportUnit</Attribute>
            <ApplyToCaster>1</ApplyToCaster>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <HitSoundFX>Spell_ManaBlastImpact_01</HitSoundFX>
        <SpellCastSoundFX>Spell_ManaBlastTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_ManaBlast_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="LowerLand">
        <DisplayName>Lower Land</DisplayName>
        <Description>Turn mountain into hill; hill into land; but not land into water.</Description>
        <Image>S_LowerLand_Painting.png</Image>
        <IconFG>S_LowerLand_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Terraform</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>NeutralGround</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>5</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>LowerLand</Attribute>
        </GameModifier>
        <ValidTerrainType>HillsTerrain</ValidTerrainType>
        <ValidTerrainCategory>Mountain</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_LowerLand_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_LowerLand_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ManaBlast">
        <DisplayName>Mana Blast</DisplayName>
        <Description>A blast of arcane energy that does damage equal to one tenth the players stored mana.  If the victim resists that damage is halved.</Description>
        <FormattedDescription>A blast of arcane energy that does %d damage.  If the victim resists that damage is halved.</FormattedDescription>
        <Image>T_ManaBlast_Painting.png</Image>
        <IconFG>T_ManaBlast_Icon.png</IconFG>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetMana] / 10]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetMana] / 20]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * -1]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ManaBlastImpact_01</HitSoundFX>
        <SpellCastSoundFX>Spell_ManaBlastTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_ManaBlast_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>T_ManaBlastImpact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ManaShield">
        <DisplayName>Mana Shield</DisplayName>
        <Description>Damage taken by the target is ignored. Instead mana is lost from the mana pool.</Description>
        <Image>S_ManaShield_Painting.png</Image>
        <IconFG>S_ManaShield_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>60</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>2</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>ManaShield</Attribute>
            <Duration>-1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ManaShield_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_ManaShield_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.6</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="MantleOfFire">
        <DisplayName>Mantle of Fire</DisplayName>
        <Description>Wreaths the target in flames, doing 6 fire damage to anyone who attacks him.</Description>
        <Image>S_MantleofFire_Painting.png</Image>
        <IconFG>S_MantleofFire_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>25</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>MeleeDefenseAppliesSpell</Attribute>
            <StrVal>MantleOfFire_Effect</StrVal>
            <Duration>-1</Duration>
            <Effect>E_MantleofFire_Particle</Effect>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <HitSoundFX>Spell_MantleOfFire_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_MantleofFire_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="MantleOfFire_Effect">
        <DisplayName>Mantle of Fire</DisplayName>
        <Description>Wreaths the target in flames, doing 6 fire damage to anyone who attacks him.</Description>
        <IconFG>S_MantleofFire_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <Value>6</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_MantleOfFire_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_MantleofFire_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.35</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="MantleOfOceans">
        <DisplayName>Mantle of Oceans</DisplayName>
        <Description>The mana costs of all tactical spells this unit casts is reduced by 40%</Description>
        <Image>S_MantleofOceans_Painting.png</Image>
        <IconFG>S_MantleofOceans_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Water3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>25</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_TacticalSpellManaCost_Multiplier</StrVal>
            <Duration>-1</Duration>
            <Effect>E_MantleOfOceans_Particle</Effect>
            <Value>-0.4</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <HitSoundFX>Spell_MantleOfOceans_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_MantleofOceans_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="MassBerserk">
        <DisplayName>Mass Berserk</DisplayName>
        <Description>All allied units gain +2 Attack (+1 per death shard) but take 1 damage per turn.</Description>
        <FormattedDescription>All allied units gain +%d Attack but take 1 damage per turn.</FormattedDescription>
        <Image>T_Berzerk_Painting.png</Image>
        <IconFG>T_Berzerk_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <DisplayName>Berserk</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Berserk_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 2]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 2]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>-1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Beserk_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Berserk_Particle</EffectName>
            <LocalPosition>0,35,0</LocalPosition>
            <EffectScale>0.7</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="MassCurse">
        <DisplayName>Mass Curse</DisplayName>
        <Description>Removes all enemies Defense for 3 turns unless they resist.</Description>
        <Image>T_MassCurse_Painting.png</Image>
        <IconFG>T_MassCurse_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>15</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <DisplayName>Cursed</DisplayName>
            <Duration>3</Duration>
            <Effect>E_Curse_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Defense_Pierce] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Curse_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Curse_Particle</EffectName>
            <LocalPosition>0,50,0</LocalPosition>
            <EffectScale>1.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="MassRegeneration">
        <DisplayName>Mass Regeneration</DisplayName>
        <Description>All units heal 1 per turn.</Description>
        <Image>S_Regeneration_Painting.png</Image>
        <IconFG>S_Regeneration_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <PreventStackingWith>Regeneration</PreventStackingWith>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_HealthRegen</StrVal>
            <Duration>-1</Duration>
            <Effect>E_Regeneration_Particle</Effect>
            <Value>1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_TacticalHealthRegen</StrVal>
            <Duration>-1</Duration>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_MassRegeneration_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Regeneration_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="MaulDebuff">
        <DisplayName>Maul Debuff</DisplayName>
        <Description>Effect after a successful Maul attack</Description>
        <IconFG>Ability_Maul_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Accuracy</StrVal>
            <Duration>1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_Accuracy] * 15]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] / -100]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
    </SpellDef>
    <SpellDef InternalName="Meditation">
        <DisplayName>Meditation</DisplayName>
        <Description>+1 Mana per Essence in the enchanted city.</Description>
        <Image>S_Meditation_Painting.png</Image>
        <IconFG>S_Meditation_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Mana</Attribute>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <PerTurn>1</PerTurn>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[TileYieldEssence]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>100</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Inspiration_01</HitSoundFX>
        <SpellCastEffectName>Brilliance</SpellCastEffectName>
        <SpellCastEffectScale>.4</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>S_Inspiration_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0.5</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="NaturesBounty">
        <DisplayName>Nature's Bounty</DisplayName>
        <Description>+1 Grain in the enchanted city.</Description>
        <Image>S_GentleRain_Painting.png</Image>
        <IconFG>S_NaturesBounty_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>25</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>TileYieldGrain</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>1</Value>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_NaturesBounty_01</HitSoundFX>
        <SpellCastEffectName>Brilliance</SpellCastEffectName>
        <SpellCastEffectScale>.4</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>S_Inspiration_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0.5</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="NaturesCall">
        <DisplayName>Nature's Call</DisplayName>
        <Description>Summons a pack of wolves, bear, naja or panther to aid you in battle.</Description>
        <Image>S_CharmMonster_Painting.png</Image>
        <IconFG>S_CharmMonster_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <AppliesRandomModifier>1</AppliesRandomModifier>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Wolf Pack</StrVal>
            <UnitClass>Wolf_Group</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Bear</StrVal>
            <UnitClass>Bear</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Stalker</StrVal>
            <UnitClass>Stalker</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Naja</StrVal>
            <UnitClass>Naja</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_NaturesCall_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonEarthElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="NaturesCloak">
        <DisplayName>Nature's Cloak</DisplayName>
        <Description>Target unit receives 20% (+10% per earth shard) resistance vs Fire, Lightning and Cold damage.</Description>
        <Image>S_NaturesCloak_Painting.png</Image>
        <IconFG>S_NaturesCloak_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>7</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ResistCold</StrVal>
            <Duration>-1</Duration>
            <Effect>E_NaturesCloak_Particle</Effect>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards] + 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * 10]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ResistFire</StrVal>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards] + 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * 10]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ResistLightning</StrVal>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards] + 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * 10]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_NaturesCloak_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_NaturesCloak_Particle</EffectName>
            <LocalPosition>0,20,0</LocalPosition>
            <EffectScale>0.7</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="NobleLegacy">
        <DisplayName>Noble Legacy</DisplayName>
        <Description>Unit is +1 Dodge per air shard, +1 Initiative per fire shard, +1 Spell Mastery per water shard and +1 Spell Resistance per earth shard.  This spell is automatically cast on Amarian units at the start of battle.</Description>
        <FormattedDescription>Unit is +%d Dodge, +%d Initiative, +%d Spell Mastery and +%d Spell Resistance.  This spell is automatically cast on Amarian units at the start of battle.</FormattedDescription>
        <Image>S_BlessingOfRestoration_Painting.png</Image>
        <IconFG>S_BlessingOfRestoration_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreCastAnim>1</IgnoreCastAnim>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Effect>E_Celerity_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_MagicPower</StrVal>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_MagicResist</StrVal>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
    </SpellDef>
    <SpellDef InternalName="ObscuringFog">
        <DisplayName>Obscuring Fog</DisplayName>
        <Description>Summons a fog that blurs your units and improves their Dodge by 3 (+1 per water shard) and an additional 3 (+1 per air shard) vs missile attacks.</Description>
        <FormattedDescription>Summons a fog that blurs your units and gives them +%d to Dodge and an additional +%d vs missile attacks.</FormattedDescription>
        <Image>T_ObscuringFog_Painting.png</Image>
        <IconFG>T_ObscuringFog_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Aeromancy</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>12</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Effect>E_ObscuringFog_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_DodgeAgainstRanged</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Obscuring_Fog_01</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="Obsession">
        <DisplayName>Obsession</DisplayName>
        <Description>+3 Production per Essence and +1 Gildar in the enchanted city.</Description>
        <Image>S_Inspiration_Painting.png</Image>
        <IconFG>S_EnchantedHammers_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Spell_Obsession</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>25</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Production</Attribute>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <PerTurn>1</PerTurn>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[TileYieldEssence] * 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Gold</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Obsession_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_AuraofMight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Oppression">
        <DisplayName>Oppression</DisplayName>
        <Description>Reduces Unrest in the city by 10%.</Description>
        <Image>S_Inspiration_Painting.png</Image>
        <IconFG>S_Oppression_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>15</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Unrest</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>-10</Value>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>30</AIPriority>
        </AIData>
        <HitSoundFX>Spell_BlessCity_01</HitSoundFX>
        <SpellCastEffectName>Brilliance</SpellCastEffectName>
        <SpellCastEffectScale>.4</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>S_Inspiration_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0.5</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Pandemonium">
        <DisplayName>Pandemonium</DisplayName>
        <Description>Does a random effect to all enemy units unless they resist.</Description>
        <Image>T_Pandemonium_Painting.png</Image>
        <IconFG>T_Pandemonium_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <AppliesRandomModifier>1</AppliesRandomModifier>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Water3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>12</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Cold</AttackStat>
            <MinValue>6</MinValue>
            <MaxValue>16</MaxValue>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <MinValue>-3</MinValue>
            <MaxValue>-8</MaxValue>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <DisplayName>Slowed</DisplayName>
            <Duration>-1</Duration>
            <Value>-1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <DisplayName>Weakened</DisplayName>
            <Duration>-1</Duration>
            <Value>-1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>ChanceToLoseNextTurn</Attribute>
            <DisplayName>Dazed</DisplayName>
            <Duration>1</Duration>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Teleport_03</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Chaos_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Pandemonium_Adept">
        <DisplayName>Pandemonium</DisplayName>
        <Description>Does a random effect to all enemy units unless they resist.</Description>
        <Image>T_Pandemonium_Painting.png</Image>
        <IconFG>T_Pandemonium_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <AppliesRandomModifier>1</AppliesRandomModifier>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>WaterAdept3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>12</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Cold</AttackStat>
            <MinValue>6</MinValue>
            <MaxValue>16</MaxValue>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <MinValue>-3</MinValue>
            <MaxValue>-8</MaxValue>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <DisplayName>Slowed</DisplayName>
            <Duration>-1</Duration>
            <Value>-1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <DisplayName>Weakened</DisplayName>
            <Duration>-1</Duration>
            <Value>-1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>ChanceToLoseNextTurn</Attribute>
            <DisplayName>Dazed</DisplayName>
            <Duration>1</Duration>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Teleport_03</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Chaos_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Paragon">
        <DisplayName>Paragon</DisplayName>
        <Description>Casting Sovereign suffers a permanent -5 to Hit Points.  Target friendly champion gains a level. </Description>
        <Image>S_Paragon_Painting.png</Image>
        <IconFG>S_Paragon_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyChampion</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <Prereq>
            <Type>UnitStat</Type>
            <Attribute>UnitStat_HitPoints</Attribute>
            <Value>6</Value>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>90</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>TargetUnitLevelUp</Attribute>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_HitPoints</StrVal>
            <ApplyToCaster>1</ApplyToCaster>
            <Value>-5</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DestinyGift_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Paragon_Particle</EffectName>
            <LocalPosition>0,30,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ParidensReturn">
        <DisplayName>Pariden's Return</DisplayName>
        <Description>Summons a Titan from a distant world to fight for five turns.</Description>
        <Image>T_ParidensReturn_Painting.png</Image>
        <IconFG>T_ParidensReturn_Icon.png</IconFG>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>180</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Titan</StrVal>
            <UnitClass>Titan</UnitClass>
            <Duration>5</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 15]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>100</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ParidensReturn_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_ParidensReturn_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.4</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="PillarOfFlame">
        <DisplayName>Pillar of Flame</DisplayName>
        <Description>Target enemy army takes 8 fire damage (+2 per fire shard). Can only be cast within your territory.</Description>
        <Image>S_PillarofFlame_Painting.png</Image>
        <IconFG>S_PillarOfFlame_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>1</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <SpellTargetZOCType>Friendly</SpellTargetZOCType>
        <UnitAppSpecifier>ApplyToAll</UnitAppSpecifier>
        <Radius>0</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>48</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>50</AIPriority>
        </AIData>
        <HitSoundFX>Spell_PillarOfFlame_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_PillarofFlame_Particle</EffectName>
            <LocalPosition>0, 0 ,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="PitOfMadness">
        <DisplayName>Pit of Madness</DisplayName>
        <Description>+1 Research per Essence, -1 Growth and attacking units are struck with Fear.</Description>
        <Image>S_CloakOfFear_Painting.png</Image>
        <IconFG>S_PitOfMadness_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death4</Attribute>
        </Prereq>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Research</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[TileYieldEssence]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Prestige</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>-1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>BattleAutoCastSpell</Attribute>
            <StrVal>Fear_Ability</StrVal>
            <Duration>-1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FearWave_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Fear_Impact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>1</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_FearWave_Particle</EffectName>
            <LocalPosition>0,20,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_FearWave_Particle</EffectName>
            <LocalPosition>0,20,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="PlayFlute">
        <DisplayName>Play Flute</DisplayName>
        <Description>All enemies lose their next turn unless they resist.  Doing this destroys the flute.</Description>
        <Image>Ability_Daze_Icon.png</Image>
        <IconFG>Ability_Daze_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>ChanceToLoseNextTurn</Attribute>
            <DisplayName>Dazed</DisplayName>
            <Duration>1</Duration>
            <Effect>E_Daze_Particle</Effect>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>50</AIPriority>
        </AIData>
        <HitSoundFX>Spell_PlayFlute_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_Daze_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Poisoned">
        <DisplayName>Poisoned</DisplayName>
        <Description>Unit takes 1 Poison damage per round</Description>
        <Image>Ability_PoisonousI_Icon.png</Image>
        <IconFG>Ability_PoisonousI_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Poison</AttackStat>
            <Duration>-1</Duration>
            <Effect>E_Poison_Particle</Effect>
            <SoundFX>Spell_Poisoned1_01</SoundFX>
            <PerTurn>1</PerTurn>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Poisoned_01</HitSoundFX>
        <HitSoundFX>Spell_Poisoned_02</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="Poisoned1">
        <DisplayName>Poisoned I</DisplayName>
        <Description>Unit takes 2 Poison damage per round</Description>
        <Image>Ability_PoisonousI_Icon.png</Image>
        <IconFG>Ability_PoisonousI_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Poison</AttackStat>
            <Duration>-1</Duration>
            <Effect>E_Poison_Particle</Effect>
            <SoundFX>Spell_Poisoned1_01</SoundFX>
            <PerTurn>1</PerTurn>
            <Value>2</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Poisoned1_01</HitSoundFX>
        <HitSoundFX>Spell_Poisoned1_02</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="Poisoned2">
        <DisplayName>Poisoned II</DisplayName>
        <Description>Unit takes 4 Poison damage per round</Description>
        <Image>Ability_PoisonousII_Icon.png</Image>
        <IconFG>Ability_PoisonousII_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Poison</AttackStat>
            <Duration>-1</Duration>
            <Effect>E_Poison_Particle</Effect>
            <SoundFX>Spell_Poisoned2_01</SoundFX>
            <PerTurn>1</PerTurn>
            <Value>4</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Poisoned2_01</HitSoundFX>
        <HitSoundFX>Spell_Poisoned2_02</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="Poisoned3">
        <DisplayName>Poisoned III</DisplayName>
        <Description>Unit takes 8 Poison damage per round</Description>
        <Image>Ability_PoisonousIII_Icon.png</Image>
        <IconFG>Ability_PoisonousIII_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Poison</AttackStat>
            <Duration>-1</Duration>
            <Effect>E_Poison_Particle</Effect>
            <SoundFX>Spell_Poisoned2_02</SoundFX>
            <PerTurn>1</PerTurn>
            <Value>8</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Poisoned2_01</HitSoundFX>
        <HitSoundFX>Spell_Poisoned2_02</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="PowerShot3">
        <DisplayName>Power Shot</DisplayName>
        <Description>Fire through 3 units in a line.</Description>
        <IconFG>Ability_Powershot2_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>3</Radius>
        <RadiusType>LINE_FORWARD</RadiusType>
        <Range>1</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Hit_Arrow1</HitSoundFX>
        <HitSoundFX>Hit_Arrow2</HitSoundFX>
        <MissSoundFX>Miss_Swing2</MissSoundFX>
        <SpellCastSoundFX>Ability_FireCrossbow</SpellCastSoundFX>
        <SpellCastEffectName>Arrow</SpellCastEffectName>
        <SpellCastEffectScale>0.5</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>1100</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="PowerShot5">
        <DisplayName>Power Shot</DisplayName>
        <Description>Fire through 5 units in a line.</Description>
        <IconFG>Ability_Powershot2_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>5</Radius>
        <RadiusType>LINE_FORWARD</RadiusType>
        <Range>1</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Hit_Arrow1</HitSoundFX>
        <HitSoundFX>Hit_Arrow2</HitSoundFX>
        <MissSoundFX>Miss_Swing2</MissSoundFX>
        <SpellCastSoundFX>Ability_FireCrossbow</SpellCastSoundFX>
        <SpellCastEffectName>Arrow</SpellCastEffectName>
        <SpellCastEffectScale>0.5</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>1100</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="Propaganda">
        <DisplayName>Propaganda</DisplayName>
        <Description>City produces +1 Gildar per Essence.</Description>
        <Image>S_Inspiration_Painting.png</Image>
        <IconFG>S_Avarice_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Air1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>20</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Gold</Attribute>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <PerTurn>1</PerTurn>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[TileYieldEssence]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>60</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Avarice_01</HitSoundFX>
        <SpellCastEffectName>Brilliance</SpellCastEffectName>
        <SpellCastEffectScale>.4</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>S_Inspiration_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0.5</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ProtectionFromCold">
        <DisplayName>Protection from Cold</DisplayName>
        <Description>All allied units gain 50% Cold Resistance.</Description>
        <Image>S_MantleofOceans_Painting.png</Image>
        <IconFG>T_ProtectionFromCold_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Abjuration</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ResistCold</StrVal>
            <Duration>-1</Duration>
            <Value>50</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ProtectionFromCold_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_MantleofOceans_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ProtectionFromFire">
        <DisplayName>Protection from Fire</DisplayName>
        <Description>All allied units gain 50% Fire  Resistance.</Description>
        <Image>S_MantleofFire_Painting.png</Image>
        <IconFG>T_ProtectionFromFire_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Abjuration</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ResistFire</StrVal>
            <Duration>-1</Duration>
            <Value>50</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_MantleOfFire_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_MantleofFire_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="PullOfTheEarth">
        <DisplayName>Pull of the Earth</DisplayName>
        <Description>Units within range are knocked prone unless they resist.</Description>
        <Image>T_PullOfTheEarth_Painting.png</Image>
        <IconFG>T_PullOfTheEarth_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Radius>1</Radius>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>18</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetKnockedProne</Attribute>
            <DisplayName>Crushed</DisplayName>
            <Duration>1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <HitSoundFX>Spell_PullOfTheEarth_01</HitSoundFX>
        <HitSoundFX>Spell_PullOfTheEarth_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_PulloftheEarth_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>0</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="QuendarWine">
        <DisplayName>Quendar Wine</DisplayName>
        <Description>+3 to Attack, but there is a 10% chance of attacking the wrong target.</Description>
        <Image>T_Confusion_Painting.png</Image>
        <IconFG>T_Confusion_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ClumsyChance</StrVal>
            <DisplayName>Hiccup</DisplayName>
            <Duration>-1</Duration>
            <Value>10</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <Value>3</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</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_Confustion_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Confusion_Particle</EffectName>
            <LocalPosition>0,35,0</LocalPosition>
            <EffectScale>0.65</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="RainOfArrows">
        <DisplayName>Rain of Arrows</DisplayName>
        <Description>Fires arrows at all enemies in a 1 tile radius.</Description>
        <IconFG>Ability_RainofArrows_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <Prereq>
            <Type>UnitStat</Type>
            <Attribute>UnitStat_IsBow</Attribute>
            <Value>1</Value>
        </Prereq>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <CasterAnimationType>31</CasterAnimationType>
        <HitSoundFX>Hit_Arrow1</HitSoundFX>
        <HitSoundFX>Hit_Arrow2</HitSoundFX>
        <MissSoundFX>Miss_Swing2</MissSoundFX>
        <SpellCastSoundFX>Spell_BowAttack_BasicCast_01</SpellCastSoundFX>
        <SpellCastEffectName>Arrow</SpellCastEffectName>
        <SpellCastEffectScale>0.5</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>1100</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="RaiseLand">
        <DisplayName>Raise Land</DisplayName>
        <Description>Turn water, beach and cliff into land; land into hill; but not hill into mountain.</Description>
        <Image>S_RaiseLand_Painting.png</Image>
        <IconFG>S_RaiseLand_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Terraform</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>NeutralGround</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>5</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>RaiseLand</Attribute>
        </GameModifier>
        <ValidTerrainType>Land</ValidTerrainType>
        <ValidTerrainType>Rugged_Land</ValidTerrainType>
        <ValidTerrainType>Fertile_Land</ValidTerrainType>
        <ValidTerrainType>DesertTerrain</ValidTerrainType>
        <ValidTerrainType>SwampTerrain</ValidTerrainType>
        <ValidTerrainType>ArcticTerrain</ValidTerrainType>
        <ValidTerrainType>Forest</ValidTerrainType>
        <ValidTerrainType>Beach</ValidTerrainType>
        <ValidTerrainType>Cliff</ValidTerrainType>
        <ValidTerrainType>Submerged</ValidTerrainType>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_RaiseLand_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_RaiseLand_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="RaiseSkeletalHorde">
        <DisplayName>Raise Skeletal Horde</DisplayName>
        <Description>Raise a skeletal horde from the ruins of Elemental.</Description>
        <FormattedDescription>Raise a horde of level %d skeletons from the ruins of Elemental.</FormattedDescription>
        <Image>Res_HowlingChasm.png</Image>
        <IconFG>T_RaiseSkeletalHorde_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <AppliesRandomModifier>1</AppliesRandomModifier>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Necromancy2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>60</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Skeleton</StrVal>
            <UnitClass>SkeletonA</UnitClass>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Skeleton</StrVal>
            <UnitClass>SkeletonB</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Skeleton</StrVal>
            <UnitClass>SkeletonC</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonEarthElemental_01</HitSoundFX>
        <WorldLightOverrideTime>2</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>30,30,30</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>30,30,30</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>212,0,192</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>0,132,234</WorldLightOverrideRim1>
    </SpellDef>
    <SpellDef InternalName="RaiseSkeleton">
        <DisplayName>Raise Skeleton</DisplayName>
        <Description>Raise a Skeleton from the ruins of Elemental.  Though weak, a skeleton costs no mana to create.</Description>
        <FormattedDescription>Raise a level %d Skeleton from the ruins of Elemental.</FormattedDescription>
        <Image>Res_HowlingChasm.png</Image>
        <IconFG>T_RaiseSkeleton_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <AppliesRandomModifier>1</AppliesRandomModifier>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Necromancy1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>0</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Skeleton</StrVal>
            <UnitClass>SkeletonA</UnitClass>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Skeleton</StrVal>
            <UnitClass>SkeletonB</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Skeleton</StrVal>
            <UnitClass>SkeletonC</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonEarthElemental_01</HitSoundFX>
        <WorldLightOverrideTime>2</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>30,30,30</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>30,30,30</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>212,0,192</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>0,132,234</WorldLightOverrideRim1>
    </SpellDef>
    <SpellDef InternalName="Reap_Effect">
        <DisplayName>Reap</DisplayName>
        <Description>Heals the caster when he damages an enemy.</Description>
        <IconFG>Ability_ReapI_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <ApplyToCaster>1</ApplyToCaster>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusReap] + 1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Beserk_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Berserk_Particle</EffectName>
            <LocalPosition>0,35,0</LocalPosition>
            <EffectScale>0.7</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Reap3_Effect">
        <DisplayName>Reap</DisplayName>
        <Description>Heals the caster when he damages an enemy.</Description>
        <IconFG>Ability_ReapIII_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <ApplyToCaster>1</ApplyToCaster>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusReap] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Beserk_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Berserk_Particle</EffectName>
            <LocalPosition>0,35,0</LocalPosition>
            <EffectScale>0.7</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Recall">
        <DisplayName>Recall</DisplayName>
        <Description>Teleports the caster, and their army, to your capital.</Description>
        <Image>S_CloudWalk_Painting.png</Image>
        <IconFG>S_CloudWalk_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Movement</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Movement</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <AlwaysPromptForCaster>1</AlwaysPromptForCaster>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Air4</Attribute>
        </Prereq>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>TransportUnit</Attribute>
            <StrVal>CapitalCity</StrVal>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
            <AITag>Teleport</AITag>
        </AIData>
        <HitSoundFX>Spell_CloudWalk_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_CloudWalk_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.50</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="RecruitBandit">
        <DisplayName>Recruit Bandit</DisplayName>
        <Description>Convert a Bandit to your cause for 25 Gildar.</Description>
        <Image>S_DestinysGift_Painting.png</Image>
        <IconFG>S_RecruitBandit_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Charm</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <SpellTargetCreatureType>Bandit</SpellTargetCreatureType>
        <Range>1</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>BanditLord</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Gold</Resource>
            <Amount>25</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CharmTarget</Attribute>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Alchemy_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Tame_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Regeneration">
        <DisplayName>Regeneration</DisplayName>
        <Description>Fully heals the target unit's health each season.</Description>
        <Image>S_Regeneration_Painting.png</Image>
        <IconFG>S_Regeneration_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <PreventStackingWith>MassRegeneration</PreventStackingWith>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Life1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>25</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_HealthRegen</StrVal>
            <Duration>-1</Duration>
            <Effect>E_Regeneration_Particle</Effect>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Regeneration_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Regeneration_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Reprisal">
        <DisplayName>Reprisal</DisplayName>
        <Description>Target unit gains the ability to counterattack, and each time the unit is struck their defense is increased by 1.</Description>
        <Image>T_Reprisal_Painting.png</Image>
        <IconFG>T_Reprisal_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_MaxCounterAttack</StrVal>
            <DisplayName>Reprisal</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Reprisal_Particle</Effect>
            <Value>1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>MeleeDefenseAppliesSpell</Attribute>
            <StrVal>Reprisal_Effect</StrVal>
            <Duration>-1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Wind_01.wav</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Evade_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Reprisal_Effect">
        <DisplayName>Reprisal</DisplayName>
        <Description>Target unit gains the ability to counterattack, and each time the unit is struck their defense is increased by 1.</Description>
        <Image>T_Reprisal_Painting.png</Image>
        <IconFG>T_Reprisal_Icon.png</IconFG>
        <CanStack>1</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <ApplyToCaster>1</ApplyToCaster>
            <DisplayName>Defense +1</DisplayName>
            <Duration>-1</Duration>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
    </SpellDef>
    <SpellDef InternalName="Rescue">
        <DisplayName>Rescue</DisplayName>
        <Description>Trade places on the battlefield with a friendly unit and then take another action.</Description>
        <IconFG>Ability_Rescue_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Movement</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SwapPosition</Attribute>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <ApplyToCaster>1</ApplyToCaster>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DarkEnchant_04</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_SummonDeathDemon_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>Y_SummonDeathDemon_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Return">
        <DisplayName>Return</DisplayName>
        <Description>Moves the caster (and their army) back to their capital city.</Description>
        <Image>S_Return_Painting.png</Image>
        <IconFG>S_Return_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Movement</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Movement</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Range>0</Range>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>25</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>TransportUnit</Attribute>
            <StrVal>CapitalCity</StrVal>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
            <AITag>Teleport</AITag>
        </AIData>
        <HitSoundFX>Spell_Return_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Return_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.50</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Revenge_Effect">
        <DisplayName>Revenge</DisplayName>
        <Description>+1 Attack each time this unit is struck in combat</Description>
        <CanStack>1</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <ApplyToCaster>1</ApplyToCaster>
            <DisplayName>Revenge</DisplayName>
            <Duration>-1</Duration>
            <Value>1</Value>
        </GameModifier>
    </SpellDef>
    <SpellDef InternalName="Riptide">
        <DisplayName>Riptide</DisplayName>
        <Description>Summon a wave that does 8 damage (+2 per water shard) to 3 adjacent enemies.</Description>
        <FormattedDescription>Summon a wave that does %d damage to 3 adjacent enemies.</FormattedDescription>
        <Image>S_Erosion_Painting.png</Image>
        <IconFG>S_TidalWave_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Radius>1</Radius>
        <RadiusType>ADJACENT</RadiusType>
        <Range>1</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Hydromancy</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 4]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
            <AIMinSpellTargets>2</AIMinSpellTargets>
        </AIData>
        <HitSoundFX>Spell_Tidal_Wave</HitSoundFX>
        <ModifierDelay>4.5</ModifierDelay>
        <SpellDefEffect>
            <EffectName>S_WaterWave_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Rush">
        <DisplayName>Rush</DisplayName>
        <Description>Take an extra action.</Description>
        <IconFG>Ability_Rush_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreCastAnim>1</IgnoreCastAnim>
        <IsCastable>0</IsCastable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Effect>E_Celerity_Particle</Effect>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Haste_01</HitSoundFX>
        <HitSoundFX>Spell_Haste_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_Ability_Rush</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1.2</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Sacrifice">
        <DisplayName>Sacrifice</DisplayName>
        <Description>Target city sacrifices half its citizens to produce 1 mana per sacrifice.</Description>
        <Image>S_Sacrifice_Painting.png</Image>
        <IconFG>S_Sacrifice_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>0</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>Sacrifice</Attribute>
            <StrVal>Mana</StrVal>
            <Multiplier>1</Multiplier>
            <Calculate InternalName="Calc" ValueOwner="TargetCity">
                <Expression><![CDATA[[CityPopulation] / 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Sacrifice_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Sacrifice_Particle</EffectName>
            <LocalPosition>0,50,0</LocalPosition>
            <EffectScale>1.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SaltTheEarth">
        <DisplayName>Salt the Earth</DisplayName>
        <Description>Transform the land to barren ground which is unable to support cities.</Description>
        <Image>S_SaltTheEarth_Painting.png</Image>
        <IconFG>S_SaltTheEarth_Icon.png</IconFG>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Terraform</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>NeutralGround</SpellTargetType>
        <Radius>1</Radius>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>PlaceEnvironment</Attribute>
            <TerrainType>BarrenEnvironment</TerrainType>
        </GameModifier>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Antipathy_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Blight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SetInStone">
        <DisplayName>Set In Stone</DisplayName>
        <Description>Increases the cities production by 50% but it produces no research.</Description>
        <Image>S_Inspiration_Painting.png</Image>
        <IconFG>S_SetInStone_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth3</Attribute>
        </Prereq>
        <GameModifier>
            <ModType>ResourceMultiplier</ModType>
            <Attribute>Research</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>0</Value>
        </GameModifier>
        <GameModifier>
            <ModType>ResourceMultiplier</ModType>
            <Attribute>Production</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>1.5</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Inspiration_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Inspiration_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0.5</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Shadowbolt">
        <DisplayName>Shadowbolt</DisplayName>
        <Description>A bolt of night strikes the victim doing 6 damage and reducing their Spell Resistance by 5 (+1 per level).</Description>
        <FormattedDescription>A bolt of night strikes the victim doing 6 damage and reducing their Spell Resistance by %d.</FormattedDescription>
        <Image>Tech_Arcane_Weapons.png</Image>
        <IconFG>T_ShadowBolt_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>1</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>18</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_MagicResist</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <DisplayName>Resist Loss</DisplayName>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] - 5]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] - 5]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Value>-6</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Shadowbolt_Hit</HitSoundFX>
        <SpellCastSoundFX>Spell_Shadowbolt_Travel</SpellCastSoundFX>
        <SpellCastEffectName>T_ShadowBolt_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.30</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>800</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>T_Confusion_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Shadowbolt_Ability">
        <DisplayName>Shadowbolt</DisplayName>
        <Description>A bolt of night strikes the victim doing 6 damage and reducing their Spell Resistance by 5 (+1 per level).</Description>
        <FormattedDescription>A bolt of night strikes the victim doing 6 damage and reducing their Spell Resistance by %d.</FormattedDescription>
        <Image>Tech_Arcane_Weapons.png</Image>
        <IconFG>T_ShadowBolt_Icon.png</IconFG>
        <CanStack>1</CanStack>
        <Cooldown>3</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_MagicResist</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <DisplayName>Resist Loss</DisplayName>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] - 5]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] - 5]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Value>-6</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Shadowbolt_Hit</HitSoundFX>
        <SpellCastSoundFX>Spell_Shadowbolt_Travel</SpellCastSoundFX>
        <SpellCastEffectName>T_ShadowBolt_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.30</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>800</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>T_Confusion_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ShadowShift">
        <DisplayName>Shadow Shift</DisplayName>
        <Description>Trades places with an enemy unit and then take another action, unless the enemy resists.</Description>
        <IconFG>Ability_ShadowShift_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Movement</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SwapPosition</Attribute>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <ApplyToCaster>1</ApplyToCaster>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DarkEnchant_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_SummonDeathDemon_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>Y_SummonDeathDemon_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ShadowWorld">
        <DisplayName>Shadow World</DisplayName>
        <Description>Opens up a rift to a shadow plane, spawning creatures of shadow for the duration of the spell's upkeep. These shadow creatures will attack anything in their way.  If the upkeep is broken, the rift closes.</Description>
        <Image>S_ShadowWorld_Painting.png</Image>
        <IconFG>S_ShadowWorld_Icon.png</IconFG>
        <Cooldown>50</Cooldown>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>100</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>5</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>CreateGoodieHut</Attribute>
            <StrVal>Shadow Rift</StrVal>
            <UnitClass>GH_Shadow_Rift</UnitClass>
            <Duration>-1</Duration>
        </GameModifier>
        <ValidTerrainType>Land</ValidTerrainType>
        <ValidTerrainType>Rugged_Land</ValidTerrainType>
        <ValidTerrainType>Fertile_Land</ValidTerrainType>
        <ValidTerrainType>DesertTerrain</ValidTerrainType>
        <ValidTerrainType>HillsTerrain</ValidTerrainType>
        <ValidTerrainType>SwampTerrain</ValidTerrainType>
        <ValidTerrainType>ArcticTerrain</ValidTerrainType>
        <ValidTerrainType>Forest</ValidTerrainType>
        <ValidTerrainType>River</ValidTerrainType>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Shadow_World</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_ShadowGate_Particle</EffectName>
            <LocalPosition>0,20,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ShieldBash_Ability">
        <DisplayName>Shield Bash</DisplayName>
        <Description>Launch a normal Attack and knock the victim back 1 tile.</Description>
        <FormattedDescription>Launch a %d Attack and knock the victim back 1 tile.</FormattedDescription>
        <IconFG>Ability_ShieldBash_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Range>1</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetMovesBack</Attribute>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <CasterAnimationType>32</CasterAnimationType>
        <HitSoundFX>Ability_Shield_Bash</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Ability_ShieldBash_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.25</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Shockwave">
        <DisplayName>Shockwave</DisplayName>
        <Description>A minor earthquake damages all enemies within 1 radius of the caster for 10 (+2 per earth shard) damage.</Description>
        <FormattedDescription>A minor earthquake damages all enemies within 1 radius of the caster for %d damage.</FormattedDescription>
        <Image>T_Shockwave_Painting.png</Image>
        <IconFG>T_Shockwave_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AllowFriendlyFireInRadius>0</AllowFriendlyFireInRadius>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsResistable>1</IsResistable>
        <Radius>1</Radius>
        <Range>0</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>60</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>80</AIPriority>
        </AIData>
        <CameraShakeDuration>1.25</CameraShakeDuration>
        <CameraShakeStrength>0.25</CameraShakeStrength>
        <HitSoundFX>Spell_Shockwave_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Shockwave_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>0</PlayOnAllTargets>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_Shockwave_Impact_Particle</EffectName>
            <LocalPosition>0,50,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Shockwave_Ability">
        <DisplayName>Shockwave</DisplayName>
        <Description>A minor earthquake damages all enemies within 1 radius of the caster for 10 (+2 per level) damage.</Description>
        <FormattedDescription>A minor earthquake damages all enemies within 1 radius of the caster for %d damage.</FormattedDescription>
        <Image>T_Shockwave_Painting.png</Image>
        <IconFG>T_Shockwave_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AllowFriendlyFireInRadius>0</AllowFriendlyFireInRadius>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <Range>0</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <CameraShakeDuration>1.25</CameraShakeDuration>
        <CameraShakeStrength>0.25</CameraShakeStrength>
        <HitSoundFX>Spell_Shockwave_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Shockwave_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>0</PlayOnAllTargets>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_Shockwave_Impact_Particle</EffectName>
            <LocalPosition>0,50,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Shockwave_Adept">
        <DisplayName>Shockwave</DisplayName>
        <Description>A minor earthquake damages all enemies within 1 radius of the caster for 10 (+2 per earth shard) damage.</Description>
        <FormattedDescription>A minor earthquake damages all enemies within 1 radius of the caster for %d damage.</FormattedDescription>
        <Image>T_Shockwave_Painting.png</Image>
        <IconFG>T_Shockwave_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AllowFriendlyFireInRadius>0</AllowFriendlyFireInRadius>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsResistable>1</IsResistable>
        <Radius>1</Radius>
        <Range>0</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>EarthAdept3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>60</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>80</AIPriority>
        </AIData>
        <CameraShakeDuration>1.25</CameraShakeDuration>
        <CameraShakeStrength>0.25</CameraShakeStrength>
        <HitSoundFX>Spell_Shockwave_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Shockwave_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>0</PlayOnAllTargets>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_Shockwave_Impact_Particle</EffectName>
            <LocalPosition>0,50,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Shrink">
        <DisplayName>Shrink</DisplayName>
        <Description>Target unit gains +50% to Dodge and their Attack is halved unless they resist.</Description>
        <Image>T_Shrink_Painting.png</Image>
        <IconFG>T_Shrink_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <PreventStackingWith>Shrink_Ability</PreventStackingWith>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Life3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>22</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Pierce</StrVal>
            <Duration>-1</Duration>
            <Multiplier>0.5</Multiplier>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <Duration>-1</Duration>
            <Multiplier>1.5</Multiplier>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_TacticalScaleMultiplier</StrVal>
            <DisplayName>Shrunk</DisplayName>
            <Duration>-1</Duration>
            <Value>0.5</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</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_Shrink_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Shrink_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.35</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Shrink_Ability">
        <DisplayName>Shrink</DisplayName>
        <Description>Target unit gains +50% to Dodge and their Attack is halved unless they resist.</Description>
        <Image>T_Shrink_Painting.png</Image>
        <IconFG>T_Shrink_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <PreventStackingWith>Shrink</PreventStackingWith>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Pierce</StrVal>
            <Duration>-1</Duration>
            <Multiplier>0.5</Multiplier>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <Duration>-1</Duration>
            <Multiplier>1.5</Multiplier>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_TacticalScaleMultiplier</StrVal>
            <DisplayName>Shrunk</DisplayName>
            <Duration>-1</Duration>
            <Value>0.5</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</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_Shrink_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Shrink_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.35</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Silence">
        <DisplayName>Silence</DisplayName>
        <Description>Prevents the target from being able to cast spells for 3 turns, unless they resist.</Description>
        <Image>T_Shrink_Painting.png</Image>
        <IconFG>T_Silence_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>20</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>PreventSpellcasting</Attribute>
            <DisplayName>Silenced</DisplayName>
            <Duration>3</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Silence_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Shrink_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.35</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SilverTongue">
        <DisplayName>Silver Tongue</DisplayName>
        <Description>Convert a trained unit to your cause unless they resist.</Description>
        <Image>S_DestinysGift_Painting.png</Image>
        <IconFG>T_SilverTongue_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>99</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Charm</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyTrainedUnit</SpellTargetType>
        <SpellTargetCreatureType>Men</SpellTargetCreatureType>
        <IsResistable>1</IsResistable>
        <Range>1</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Diplomat</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Gold</Resource>
            <Amount>100</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CharmTarget</Attribute>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SilverTongue_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Tame_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SingingForge">
        <DisplayName>Singing Forge</DisplayName>
        <Description>Double the units normal attack and provides +1 Metal when it strikes.</Description>
        <IconFG>Ability_Masons_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <UseWeaponRange>1</UseWeaponRange>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Metal</Attribute>
            <ApplyToCaster>1</ApplyToCaster>
            <DisplayName>+1 Metal</DisplayName>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <CasterAnimationType>26</CasterAnimationType>
        <HitSoundFX>Hit_HeavyClub1</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_CrushingBlow_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1.0</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Slow">
        <DisplayName>Slow</DisplayName>
        <Description>Target enemy unit suffers -3 to Initiative (-1 per water shard) unless they resist.</Description>
        <FormattedDescription>Target enemy unit suffers -%d to Initiative unless they resist.</FormattedDescription>
        <Image>T_Slow_Painting.png</Image>
        <IconFG>T_Slow_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <PreventStackingWith>Slow_Ability</PreventStackingWith>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Water1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>5</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <DisplayName>Slowed</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Slow_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] - 3]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] - 3]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</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_FreezeGroup</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="Slow_Ability">
        <DisplayName>Slow</DisplayName>
        <Description>Target enemy unit suffers -3 to Initiative (-1 per water shard) unless they resist.</Description>
        <FormattedDescription>Target enemy unit suffers -%d to Initiative unless they resist.</FormattedDescription>
        <Image>T_Slow_Painting.png</Image>
        <IconFG>T_Slow_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <PreventStackingWith>Slow</PreventStackingWith>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <DisplayName>Slowed</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Slow_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] - 3]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] - 3]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</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_FreezeGroup</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="Slow_Adept">
        <DisplayName>Slow</DisplayName>
        <Description>Target enemy unit suffers -3 to Initiative (-1 per water shard) unless they resist.</Description>
        <FormattedDescription>Target enemy unit suffers -%d to Initiative unless they resist.</FormattedDescription>
        <Image>T_Slow_Painting.png</Image>
        <IconFG>T_Slow_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <PreventStackingWith>Slow</PreventStackingWith>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>WaterAdept1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>5</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <DisplayName>Slowed</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Slow_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] - 3]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] - 3]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</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_FreezeGroup</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="Slow_Effect">
        <DisplayName>Slow</DisplayName>
        <Description>Target enemy unit suffers -3 to Initiative.</Description>
        <Image>T_Slow_Painting.png</Image>
        <IconFG>T_Slow_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_CombatSpeed</StrVal>
            <DisplayName>Slowed</DisplayName>
            <Duration>-1</Duration>
            <Value>-3</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_FreezeGroup</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="Soulburning">
        <DisplayName>Soulburning</DisplayName>
        <Description>Does 12 fire damage (+2 per death and fire shard) to the unit, half if the victim resists.</Description>
        <FormattedDescription>Does %d fire damage to the unit, half if the victim resists.  If the unit is killed an inferno is left in the tile.</FormattedDescription>
        <Image>T_Soulburning_Painting.png</Image>
        <IconFG>T_Soulburning_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Radius>0</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Pyromancy</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>32</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards] + [UnitOwner_GetNumFireShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3">
                <Expression><![CDATA[[Calc2] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3] + 12]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3] + 12]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>CreateWorldProp</Attribute>
            <StrVal>TD_Groundfire</StrVal>
            <ApplyIfSpellTargetKilled>1</ApplyIfSpellTargetKilled>
            <Duration>-1</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <ApplyToTile>1</ApplyToTile>
            <ApplyIfSpellTargetKilled>1</ApplyIfSpellTargetKilled>
            <DurationOnTile>-1</DurationOnTile>
            <Value>5</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards] + [UnitOwner_GetNumFireShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3] + 6]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Soulburning_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Soulburning_Particle</EffectName>
            <LocalPosition>0, 0 ,0</LocalPosition>
            <EffectScale>0.50</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Soulburning_Ability">
        <DisplayName>Soulburning</DisplayName>
        <Description>Does 12 fire damage (+2 per death and fire shard) to the unit, half if the victim resists.</Description>
        <FormattedDescription>Does %d fire damage to the unit, half if the victim resists.  If the unit is killed an inferno is left in the tile.</FormattedDescription>
        <Image>T_Soulburning_Painting.png</Image>
        <IconFG>T_Soulburning_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>0</Radius>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards] + [UnitOwner_GetNumFireShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3">
                <Expression><![CDATA[[Calc2] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3] + 12]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3] + 12]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>CreateWorldProp</Attribute>
            <StrVal>TD_Groundfire</StrVal>
            <ApplyIfSpellTargetKilled>1</ApplyIfSpellTargetKilled>
            <Duration>-1</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <ApplyToTile>1</ApplyToTile>
            <ApplyIfSpellTargetKilled>1</ApplyIfSpellTargetKilled>
            <DurationOnTile>-1</DurationOnTile>
            <Value>5</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards] + [UnitOwner_GetNumFireShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_SpellDamage_Fire]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3] + 6]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Soulburning_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Soulburning_Particle</EffectName>
            <LocalPosition>0, 0 ,0</LocalPosition>
            <EffectScale>0.50</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SoulSpark">
        <DisplayName>Soul Spark</DisplayName>
        <Description>Does 2 (+1 per level) lightning damage to the victim.  This damage is multipled by the amount of units casting.</Description>
        <FormattedDescription>Does %d lightning damage to the victim.</FormattedDescription>
        <IconFG>T_SoulSpark_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>16</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] + 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetTroopCount]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * [Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] * [Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] + 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetTroopCount] / 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * [Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ManaBlastImpact_01</HitSoundFX>
        <SpellCastSoundFX>Spell_ManaBlastTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_SoulSpark_Projectile_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>T_SoulSpark_Hit_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.7</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SovereignsCall">
        <DisplayName>Sovereign's Call</DisplayName>
        <Description>+2 Growth in the enchanted city.</Description>
        <Image>S_CallToArms_Painting.png</Image>
        <IconFG>S_SovereignsCall_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Life1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>25</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Prestige</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>2</Value>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Inspiration_01</HitSoundFX>
        <SpellCastEffectName>Brilliance</SpellCastEffectName>
        <SpellCastEffectScale>.4</SpellCastEffectScale>
        <SpellDefEffect>
            <EffectName>S_Inspiration_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0.5</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SpellLeech">
        <DisplayName>Spell Leech</DisplayName>
        <Description>Disrupts a spell an enemy unit is casting unless they resist.  If successful this spell also grants the caster 40 mana.</Description>
        <Image>S_Corruption_Painting.png</Image>
        <IconFG>T_SpellLeech_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyCaster</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Water3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>20</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>DisruptSpellCharge</Attribute>
        </GameModifier>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>Mana</Attribute>
            <ApplyToCaster>1</ApplyToCaster>
            <Value>40</Value>
        </GameModifier>
        <HitSoundFX>Spell_DrainLife_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Corruption_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SpellOfMaking">
        <DisplayName>Spell of Making</DisplayName>
        <Description>This spell places the full power of magic at your disposal, allowing none to challenge your sovereignty.</Description>
        <Image>S_SpellofMaking_Painting.png</Image>
        <IconFG>S_SpellofMaking_Icon.png</IconFG>
        <CastTime>10</CastTime>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Other</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <Prereq>
            <Type>BuildingRequirement</Type>
            <Target>Player</Target>
            <Attribute>ForgeOfTheOverlord</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>250</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SpellVictory</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>1000</AIPriority>
            <AITag>Victory</AITag>
        </AIData>
        <ChannelingEffect>S_ChannelingSpellOfMaking_1</ChannelingEffect>
        <HitSoundFX>Spell_Spell_of_Making_01</HitSoundFX>
        <SpellCastEffectName>Spell_Of_Making</SpellCastEffectName>
        <SpellCastEffectScale>.6</SpellCastEffectScale>
    </SpellDef>
    <SpellDef InternalName="SpitAcid1">
        <DisplayName>Spit Acid I</DisplayName>
        <Description>Target enemy takes 1-3 damage a round for 10 rounds.</Description>
        <Image>Ability_SpitAcidI_Icon.png</Image>
        <IconFG>Ability_SpitAcidI_Icon.png</IconFG>
        <Cooldown>3</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Duration>10</Duration>
            <Effect>E_Acid_Particle</Effect>
            <PerTurn>1</PerTurn>
            <MinValue>-1</MinValue>
            <MaxValue>-3</MaxValue>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>25</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SpitAcidHit_01</HitSoundFX>
        <HitSoundFX>Spell_SpitAcidHit_02</HitSoundFX>
        <SpellCastSoundFX>Spell_SpitAcidCast_01</SpellCastSoundFX>
        <SpellCastEffectName>Y_SpitAcid_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.50</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>400</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="SpitAcid2">
        <DisplayName>Spit Acid II</DisplayName>
        <Description>Target enemy takes 2-6 damage a round for 15 rounds.</Description>
        <Image>Ability_SpitAcidII_Icon.png</Image>
        <IconFG>Ability_SpitAcidII_Icon.png</IconFG>
        <Cooldown>3</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Duration>15</Duration>
            <Effect>E_Acid_Particle</Effect>
            <PerTurn>1</PerTurn>
            <MinValue>-2</MinValue>
            <MaxValue>-6</MaxValue>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>30</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SpitAcidHit_01</HitSoundFX>
        <HitSoundFX>Spell_SpitAcidHit_02</HitSoundFX>
        <SpellCastSoundFX>Spell_SpitAcidCast_01</SpellCastSoundFX>
        <SpellCastEffectName>Y_SpitAcid_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.50</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>400</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="SpitAcid3">
        <DisplayName>Spit Acid III</DisplayName>
        <Description>Target enemy takes 4-9 damage a round for 20 rounds.</Description>
        <Image>Ability_SpitAcidIII_Icon.png</Image>
        <IconFG>Ability_SpitAcidIII_Icon.png</IconFG>
        <Cooldown>3</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Duration>20</Duration>
            <Effect>E_Acid_Particle</Effect>
            <PerTurn>1</PerTurn>
            <MinValue>-4</MinValue>
            <MaxValue>-9</MaxValue>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>35</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SpitAcidHit_01</HitSoundFX>
        <HitSoundFX>Spell_SpitAcidHit_02</HitSoundFX>
        <SpellCastSoundFX>Spell_SpitAcidCast_01</SpellCastSoundFX>
        <SpellCastEffectName>Y_SpitAcid_Particle</SpellCastEffectName>
        <SpellCastEffectScale>0.50</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>400</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="SpitFire">
        <DisplayName>Spit Fire</DisplayName>
        <Description>Target unit is enveloped in fire taking the caster's attack strength in fire damage.</Description>
        <FormattedDescription>Target unit is enveloped in fire taking %d fire damage.</FormattedDescription>
        <IconFG>Ability_FireBreath_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>3</Radius>
        <RadiusType>LINE_FORWARD</RadiusType>
        <Range>1</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>40</AIPriority>
            <AIMinSpellTargets>2</AIMinSpellTargets>
        </AIData>
        <SpellCastSoundFX>Spells_DragonFire_01</SpellCastSoundFX>
        <SpellCastEffectName>Y_Firebreath_Particle</SpellCastEffectName>
        <SpellCastEffectScale>2.0</SpellCastEffectScale>
    </SpellDef>
    <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>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 1]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <HitSoundFX>Spell_StaticBlast_01</HitSoundFX>
        <HitSoundFX>Spell_StaticBlast_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_StaticBlast_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="StealSpirit">
        <DisplayName>Steal Spirit</DisplayName>
        <Description>Steal a spell trait from an allied champion.  Target is killed, however.</Description>
        <Image>S_StealSpirit_Painting.png</Image>
        <IconFG>S_StealSpirit_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyChampion</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>20</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>StealSpirit</Attribute>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>PermanentDeath</Attribute>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_StealSpirit_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_StealSpirit_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="StinkingMud">
        <DisplayName>Stinking Mud</DisplayName>
        <Description>Changes the terrain within a 1 tile radius to mud.  Units can only move 1 tile per turn through mud.</Description>
        <Image>T_StinkingMud_Painting.png</Image>
        <IconFG>T_StinkingMud_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>FriendlyTerritory</SpellTargetType>
        <SpellTargetTileOccupied>EnemyOrEmpty</SpellTargetTileOccupied>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Spell_StinkingMud</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>8</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>CreateWorldProp</Attribute>
            <StrVal>Stinking_Mud</StrVal>
            <Duration>-1</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_Moves</StrVal>
            <ApplyToTile>1</ApplyToTile>
            <Duration>1</Duration>
            <DurationOnTile>-1</DurationOnTile>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_StinkingMud_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_StinkingMud_Particle</EffectName>
            <LocalPosition>0, 0 ,0</LocalPosition>
            <EffectScale>0.50</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Stoneskin">
        <DisplayName>Stoneskin</DisplayName>
        <Description>Target champion's Defense is raised by 3 (+1 per earth shard).</Description>
        <Image>T_Stoneskin_Painting.png</Image>
        <IconFG>T_Stoneskin_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>15</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <Duration>-1</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <HitSoundFX>Spell_StoneSkin_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_StoneSkin_Particle</EffectName>
            <LocalPosition>0,25,0</LocalPosition>
            <EffectScale>.4</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Stoneskin_Tactical">
        <DisplayName>Stoneskin</DisplayName>
        <Description>Target champion's Defense is raised by 3 (+1 per earth shard).</Description>
        <FormattedDescription>Target champion's Defense is raised by %d.</FormattedDescription>
        <Image>T_Stoneskin_Painting.png</Image>
        <IconFG>T_Stoneskin_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <PreventStackingWith>Stoneskin</PreventStackingWith>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>15</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_StoneSkin_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_StoneSkin_Particle</EffectName>
            <LocalPosition>0,25,0</LocalPosition>
            <EffectScale>.4</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Stoneskin_Tactical_Adept">
        <DisplayName>Stoneskin</DisplayName>
        <Description>Target champion's Defense is raised by 3 (+1 per earth shard).</Description>
        <FormattedDescription>Target champion's Defense is raised by %d.</FormattedDescription>
        <Image>T_Stoneskin_Painting.png</Image>
        <IconFG>T_Stoneskin_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <PreventStackingWith>Stoneskin</PreventStackingWith>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>EarthAdept2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>15</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_StoneSkin_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_StoneSkin_Particle</EffectName>
            <LocalPosition>0,25,0</LocalPosition>
            <EffectScale>.4</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Storm">
        <DisplayName>Storm</DisplayName>
        <Description>Lightning strikes a random enemy group for 20 Lightning damage (+4 per air shard).</Description>
        <FormattedDescription>Lightning strikes a random enemy group for %d Lightning damage.</FormattedDescription>
        <Image>T_Storm_Painting.png</Image>
        <IconFG>T_Storm_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>RandomEnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Air3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>24</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards] * 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 20]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 20]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>60</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Storm_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Storm_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Storm_Ability">
        <DisplayName>Storm</DisplayName>
        <Description>Lightning strikes a random enemy group for 20 Lightning damage (+4 per air shard).</Description>
        <FormattedDescription>Lightning strikes a random enemy group for %d Lightning damage.</FormattedDescription>
        <Image>T_Storm_Painting.png</Image>
        <IconFG>T_Storm_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <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[[UnitOwner_GetNumAirShards] * 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 20]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 20]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>60</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Storm_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Storm_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Storm_Adept">
        <DisplayName>Storm</DisplayName>
        <Description>Lightning strikes a random enemy group for 20 Lightning damage (+4 per air shard).</Description>
        <FormattedDescription>Lightning strikes a random enemy group for %d Lightning damage.</FormattedDescription>
        <Image>T_Storm_Painting.png</Image>
        <IconFG>T_Storm_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>RandomEnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>AirAdept3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>24</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards] * 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 20]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 20]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>60</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Storm_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Storm_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Stun">
        <DisplayName>Stun</DisplayName>
        <Description>Attack that causes the unit to lose their next attack, unless they resist.</Description>
        <Image>Ability_Stun_Icon.png</Image>
        <IconFG>Ability_Stun_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <ApproachTargetTile>1</ApproachTargetTile>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Range>1</Range>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>ChanceToLoseNextTurn</Attribute>
            <DisplayName>Stunned</DisplayName>
            <Duration>1</Duration>
            <Value>100</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <IsForSpellResist>1</IsForSpellResist>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <CasterAnimationType>30</CasterAnimationType>
        <HitSoundFX>Spell_Daze_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_Stun_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1.0</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonAbomination">
        <DisplayName>Summon Abomination</DisplayName>
        <Description>Summons a level 5 Abomination</Description>
        <FormattedDescription>Summons a level %d Abomination.</FormattedDescription>
        <Image>Res_HowlingChasm.png</Image>
        <IconFG>S_SummonAbomination_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Range>0</Range>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Abomination</StrVal>
            <UnitClass>Juggernaut_Escaped</UnitClass>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonEarthElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonEarthElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonAirElemental">
        <DisplayName>Summon Air Elemental</DisplayName>
        <Description>Summons a level 5 (+1 per air shard) Air Elemental.</Description>
        <Image>M_AirElemental_Card.png</Image>
        <IconFG>S_SummonAirElemental_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonAirElemental</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>45</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Air Elemental</StrVal>
            <UnitClass>AirElemental</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards] + [UnitStat_BonusSummonLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonAirElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonAirElemental_Ability">
        <DisplayName>Summon Air Elemental</DisplayName>
        <Description>Summons a level 5 Air Elemental.</Description>
        <Image>M_AirElemental_Card.png</Image>
        <IconFG>S_SummonAirElemental_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Air Elemental</StrVal>
            <UnitClass>AirElemental</UnitClass>
            <Duration>-1</Duration>
            <Value>5</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonAirElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonAirElemental_Tactical">
        <DisplayName>Summon Air Elemental</DisplayName>
        <Description>Summons a level 5 (+1 per air shard) Air Elemental.</Description>
        <FormattedDescription>Summons a level %d Air Elemental.</FormattedDescription>
        <Image>M_AirElemental_Card.png</Image>
        <IconFG>S_SummonAirElemental_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <SpellTargetTileOccupied>EnemyOrEmpty</SpellTargetTileOccupied>
        <HideInHiergamenon>1</HideInHiergamenon>
        <PreventStackingWith>SummonAirElemental</PreventStackingWith>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonAirElemental</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>45</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Air Elemental</StrVal>
            <UnitClass>AirElemental</UnitClass>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards] + [UnitStat_BonusSummonLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetMovesBack</Attribute>
            <Value>1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetKnockedProne</Attribute>
            <Duration>1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonAirElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonBurningWraith_Tactical">
        <DisplayName>Summon Burning Wraith</DisplayName>
        <Description>Summons a level 5 Burning Wraith.</Description>
        <FormattedDescription>Summons a level %d Burning Wraith.</FormattedDescription>
        <Image>M_BurningWraith.png</Image>
        <IconFG>S_SummonAirElemental_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Burning Wraith</StrVal>
            <UnitClass>BurningWraith</UnitClass>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonAirElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonCragSpawn">
        <DisplayName>Summon Crag Spawn</DisplayName>
        <Description>Summons a level 5 Crag Spawn.</Description>
        <Image>M_Elemental_Earth_Card.png</Image>
        <IconFG>T_SummonCragSpawn_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonCragSpawn</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>45</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>CragSpawn</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards] + [UnitStat_BonusSummonLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonAirElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonCragSpawn_Tactical">
        <DisplayName>Summon Crag Spawn</DisplayName>
        <Description>Summons a level 5 Crag Spawn.</Description>
        <FormattedDescription>Summons a level %d Crag Spawn.</FormattedDescription>
        <Image>M_Elemental_Earth_Card.png</Image>
        <IconFG>T_SummonCragSpawn_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <SpellTargetTileOccupied>EnemyOrEmpty</SpellTargetTileOccupied>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <PreventStackingWith>SummonCragSpawn</PreventStackingWith>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonCragSpawn</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>45</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>CragSpawn</UnitClass>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards] + [UnitStat_BonusSummonLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>CreateWorldProp</Attribute>
            <StrVal>Stinking_Mud</StrVal>
            <Duration>5</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_Moves</StrVal>
            <ApplyToTile>1</ApplyToTile>
            <Duration>1</Duration>
            <DurationOnTile>5</DurationOnTile>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonAirElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonDeathDemon">
        <DisplayName>Summon Death Demon</DisplayName>
        <Description>Summon a level 8 (+1 per death shard) Death Demon.</Description>
        <FormattedDescription>Summon a level %d Death Demon.</FormattedDescription>
        <Image>M_SuperDemon_Card.png</Image>
        <IconFG>Ability_SummonDeathDemon_Icon.png</IconFG>
        <CastTime>3</CastTime>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Range>1</Range>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Death Demon</StrVal>
            <UnitClass>DeathDemon</UnitClass>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards] + [UnitStat_BonusSummonLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 8]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>85</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonDeathDemon_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_SummonDeathDemon_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonDelin">
        <DisplayName>Summon the Pyre of Men</DisplayName>
        <Description>Summon Delin, the Pyre of Men for 3 actions.</Description>
        <Image>M_Delin_Card_01.png</Image>
        <IconFG>T_ParidensReturn_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>2</CastTime>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonMastery</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>500</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Delin_Summon</StrVal>
            <UnitClass>Delin</UnitClass>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>3</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 10]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>100</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ParidensReturn_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_ParidensReturn_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.4</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonEarthElemental">
        <DisplayName>Summon Earth Elemental</DisplayName>
        <Description>Summons a level 5 (+1 per earth shard) Earth Elemental.</Description>
        <Image>S_SummonEarthElemental_Painting.png</Image>
        <IconFG>S_SummonEarthElemental_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Range>0</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonEarthElemental</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>60</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Earth Elemental</StrVal>
            <UnitClass>EarthElemental</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards] + [UnitStat_BonusSummonLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonEarthElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonEarthElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonEarthElemental_Tactical">
        <DisplayName>Summon Earth Elemental</DisplayName>
        <Description>Summons a level 5 (+1 per earth shard) Earth Elemental and does 12 damage to all enemies with 1 tile.</Description>
        <FormattedDescription>Summons a level %d Earth Elemental and does 12 damage to all enemies with 1 tile.</FormattedDescription>
        <Image>S_SummonEarthElemental_Painting.png</Image>
        <IconFG>S_SummonEarthElemental_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <SpellTargetTileOccupied>EnemyOrEmpty</SpellTargetTileOccupied>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <PreventStackingWith>SummonEarthElemental</PreventStackingWith>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonEarthElemental</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>60</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Earth Elemental</StrVal>
            <UnitClass>EarthElemental</UnitClass>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumEarthShards] + [UnitStat_BonusSummonLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <Value>12</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <CameraShakeDuration>1.25</CameraShakeDuration>
        <CameraShakeStrength>0.25</CameraShakeStrength>
        <HitSoundFX>Spell_SummonEarthElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonEarthElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_Shockwave_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>0</PlayOnAllTargets>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_Shockwave_Impact_Particle</EffectName>
            <LocalPosition>0,50,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonersBoon">
        <DisplayName>Summoner's Boon</DisplayName>
        <Description>Summoned units get a 50% boost to attack.</Description>
        <Image>S_SummonersBoon_Painting.png</Image>
        <IconFG>S_SummonersBoon_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Player</ModType>
            <Attribute>AbilityBonus</Attribute>
            <StrVal>A_SummonAttackBoost</StrVal>
            <Duration>-1</Duration>
            <Effect>E_SummonersBoon_Particle</Effect>
            <Value>50</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_HitPoints</StrVal>
            <Duration>-1</Duration>
            <Value>0</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Enchant_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonersBoon_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonFamiliar">
        <DisplayName>Summon Familiar</DisplayName>
        <Description>Summon a Familiar.  Familiars can cast all the spells your sovereign can.</Description>
        <Image>M_WargFamiliar_Card.png</Image>
        <IconFG>T_SummonFamiliar_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <Range>0</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SovereignBond</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>Familiar</UnitClass>
            <Duration>-1</Duration>
            <Value>1</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonFamiliar_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonEarthElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonFireElemental">
        <DisplayName>Summon Fire Elemental</DisplayName>
        <Description>Summons a level 5 (+1 per fire shard) Fire Elemental.</Description>
        <Image>S_SummonFireElemental_Painting.png</Image>
        <IconFG>S_SummonFireElemental_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Range>0</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonFireElemental</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Fire Elemental</StrVal>
            <UnitClass>FireElemental</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] + [UnitStat_BonusSummonLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonFireElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonFireElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonFireElemental_Tactical">
        <DisplayName>Summon Fire Elemental</DisplayName>
        <Description>Summons a level 5 (+1 per fire shard) Fire Elemental and sets all surrounding tiles on fire for 5 turns.</Description>
        <FormattedDescription>Summons a level %d Fire Elemental and sets all surrounding tiles on fire for 5 turns.</FormattedDescription>
        <Image>S_SummonFireElemental_Painting.png</Image>
        <IconFG>S_SummonFireElemental_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <SpellTargetTileOccupied>EnemyOrEmpty</SpellTargetTileOccupied>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <PreventStackingWith>SummonFireElemental</PreventStackingWith>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonFireElemental</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Fire Elemental</StrVal>
            <UnitClass>FireElemental</UnitClass>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] + [UnitStat_BonusSummonLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 5]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>CreateWorldProp</Attribute>
            <StrVal>TD_Groundfire</StrVal>
            <Duration>5</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <ApplyToTile>1</ApplyToTile>
            <DurationOnTile>5</DurationOnTile>
            <Value>5</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonFireElemental_01</HitSoundFX>
        <WorldLightOverrideTime>4</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>30,30,30</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>30,30,30</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>255,0,0</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>255,156,0</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>S_SummonFireElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonGraveElemental">
        <DisplayName>Summon Grave Elemental</DisplayName>
        <Description>Summons a level 5 Grave Elemental.</Description>
        <Image>M_GraveElemental.png</Image>
        <IconFG>T_SummonGraveElemental_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Range>0</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonGraveElemental</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>60</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>GraveElemental_Ancient</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonAirElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonGraveElemental_Tactical">
        <DisplayName>Summon Grave Elemental</DisplayName>
        <Description>Summons a level 5 Grave Elemental and all adjacent allied units are provided with a Death Ward for 5 turns.</Description>
        <FormattedDescription>Summons a level %d Grave Elemental and all adjacent allied units are provided with a Death Ward for 5 turns.</FormattedDescription>
        <Image>M_GraveElemental.png</Image>
        <IconFG>T_SummonGraveElemental_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <SpellTargetTileOccupied>Empty</SpellTargetTileOccupied>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <PreventStackingWith>SummonGraveElemental</PreventStackingWith>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonGraveElemental</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>60</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>GraveElemental_Ancient</UnitClass>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DeathWard</Attribute>
            <DisplayName>Death Ward</DisplayName>
            <Duration>5</Duration>
            <Effect>E_CloakOfFear_Particle</Effect>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonAirElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonIceElemental">
        <DisplayName>Summon Ice Elemental</DisplayName>
        <Description>Summons a level 3 (+1 per water shard) Ice Elemental.</Description>
        <Image>T_SummonIceElemental_Painting.png</Image>
        <IconFG>T_SummonIceElemental_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Range>0</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonIceElemental</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>20</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Ice Elemental</StrVal>
            <UnitClass>IceElemental</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards] +  [UnitStat_BonusSummonLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonIceElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_SummonIceElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonIceElemental_Tactical">
        <DisplayName>Summon Ice Elemental</DisplayName>
        <Description>Summons a level 3 (+1 per water shard) Ice Elemental.</Description>
        <FormattedDescription>Summons a level %d Ice Elemental.</FormattedDescription>
        <Image>T_SummonIceElemental_Painting.png</Image>
        <IconFG>T_SummonIceElemental_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <PreventStackingWith>SummonIceElemental</PreventStackingWith>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonIceElemental</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>20</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Ice Elemental</StrVal>
            <UnitClass>IceElemental</UnitClass>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards] +  [UnitStat_BonusSummonLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonIceElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_SummonIceElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonIgnys">
        <DisplayName>Summon Ignys</DisplayName>
        <Description>Summons a level 5 fire breathing Ignys.</Description>
        <Image>M_Ignys_Card.png</Image>
        <IconFG>T_SummonIgnys_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Range>0</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonIgnys</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>45</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>Ignys</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonAirElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonIgnys_Tactical">
        <DisplayName>Summon Ignys</DisplayName>
        <Description>Summons a level 5 fire breathing Ignys and does 8 fire damage to all enemies within 1 tile.</Description>
        <FormattedDescription>Summons a level %d fire breathing Ignys and does 8 fire damage to all enemies within 1 tile.</FormattedDescription>
        <Image>M_Ignys_Card.png</Image>
        <IconFG>T_SummonIgnys_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <SpellTargetTileOccupied>EnemyOrEmpty</SpellTargetTileOccupied>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <PreventStackingWith>SummonIgnys</PreventStackingWith>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonIgnys</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>45</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>Ignys</UnitClass>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <Value>8</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>E_FireballExplosion_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonLightbringer">
        <DisplayName>Summon Lightbringer</DisplayName>
        <Description>Summons a level 5 (+1 per life shard) Lightbringer.</Description>
        <Image>Lightbringer_Medallion.png</Image>
        <IconFG>T_SummonLightbringer_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Range>0</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonLightbringer</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>60</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>Lightbringer</UnitClass>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumLifeShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + [Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <WorldLightOverrideTime>4</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>1500,1500,1500</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>500,500,500</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>240,240,240</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>240,240,240</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>S_BlindingLight_Particle</EffectName>
            <LocalPosition>0,60,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonLightbringer_Tactical">
        <DisplayName>Summon Lightbringer</DisplayName>
        <Description>Summons a level 5 (+1 per life shard) Lightbringer.</Description>
        <FormattedDescription>Summons a level %d Lightbringer.</FormattedDescription>
        <Image>Lightbringer_Medallion.png</Image>
        <IconFG>T_SummonLightbringer_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <SpellTargetTileOccupied>EnemyOrEmpty</SpellTargetTileOccupied>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsResistable>1</IsResistable>
        <PreventStackingWith>SummonLightbringer</PreventStackingWith>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonLightbringer</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>60</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>Lightbringer</UnitClass>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumLifeShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + [Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + [Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Accuracy</StrVal>
            <DisplayName>Blinded</DisplayName>
            <Duration>5</Duration>
            <Effect>E_Blindness_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Accuracy] * -0.25]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <WorldLightOverrideTime>4</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>1500,1500,1500</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>500,500,500</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>240,240,240</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>240,240,240</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>S_BlindingLight_Particle</EffectName>
            <LocalPosition>0,60,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonSentinel">
        <DisplayName>Summon Sentinel</DisplayName>
        <Description>Summons a level 3 Armored Sentinel and increase the Defense of all surrounding allies by 10.</Description>
        <FormattedDescription>Summons a level %d Armored Sentinel and increase the Defense of all surrounding allies by 10.</FormattedDescription>
        <IconFG>T_SummonSentinel_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <SpellTargetTileOccupied>Empty</SpellTargetTileOccupied>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsResistable>1</IsResistable>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonSentinel</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>ArmoredSentinel</UnitClass>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + [UnitStat_BonusSentinelSummonLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <DisplayName>10 Defense</DisplayName>
            <Duration>1</Duration>
            <Value>10</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <WorldLightOverrideTime>4</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>1500,1500,1500</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>500,500,500</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>240,240,240</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>240,240,240</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>S_BlindingLight_Particle</EffectName>
            <LocalPosition>0,60,0</LocalPosition>
            <EffectScale>2</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonShadowWarg">
        <DisplayName>Summon Shadow Warg</DisplayName>
        <Description>Summons a level 1 Shadow Warg.</Description>
        <Image>M_Warg_ShadowWarg_Card.png</Image>
        <IconFG>S_SummonShadowWarg_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Range>0</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Summoner</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Shadow Warg</StrVal>
            <UnitClass>ShadowWarg</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonShadowWarg_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_SummonDeathDemon_Particle</EffectName>
            <LocalPosition>0,20,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonShadowWarg_Tactical">
        <DisplayName>Summon Shadow Warg</DisplayName>
        <Description>Summons a level 1 Shadow Warg.</Description>
        <FormattedDescription>Summons a level %d Shadow Warg.</FormattedDescription>
        <Image>M_Warg_ShadowWarg_Card.png</Image>
        <IconFG>S_SummonShadowWarg_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>EmptyTile</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <PreventStackingWith>SummonShadowWarg</PreventStackingWith>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Summoner</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Shadow Warg</StrVal>
            <UnitClass>ShadowWarg</UnitClass>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonShadowWarg_01</HitSoundFX>
        <WorldLightOverrideTime>2</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>30,30,30</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>30,30,30</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>212,0,192</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>0,132,234</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>Y_SummonDeathDemon_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonTitanImp">
        <DisplayName>Summon Titan's Imp</DisplayName>
        <Description>Summons a level 8 Imp of the Titans.</Description>
        <Image>S_CalloftheTitans_Painting.png</Image>
        <IconFG>S_CalloftheTitans_Icon.png</IconFG>
        <AutoUnlock>0</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <CasterMustBeSov>1</CasterMustBeSov>
        <Range>0</Range>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Imp of the Titans</StrVal>
            <UnitClass>TitanImp</UnitClass>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 8]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonEarthElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonEarthElemental_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonWisp">
        <DisplayName>Summon Wisp</DisplayName>
        <Description>Summons a level 2 (+1 per life shard) Wisp and heal all allies within 1 tile for 8 hit points.</Description>
        <Image>Wisp_Medallion.png</Image>
        <IconFG>T_SummonWisp_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <Range>0</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonWisp</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>Wisp</UnitClass>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumLifeShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + [Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_HealingLight_Particle</EffectName>
            <LocalPosition>0,65,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SummonWisp_Tactical">
        <DisplayName>Summon Wisp</DisplayName>
        <Description>Summons a level 2 (+1 per life shard) Wisp and heal all allies within 1 tile for 8 hit points.</Description>
        <FormattedDescription>Summons a level %d Wisp and heal all allies within 1 tile for 8 hit points.</FormattedDescription>
        <Image>Wisp_Medallion.png</Image>
        <IconFG>T_SummonWisp_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Summon</SpellBookSortCategory>
        <SpellBookSortSubCategory>Summon</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Summon</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <SpellTargetTileOccupied>Empty</SpellTargetTileOccupied>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <PreventStackingWith>SummonWisp</PreventStackingWith>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>SummonWisp</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <UnitClass>Wisp</UnitClass>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_BonusSummonLevel] + 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumLifeShards]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + [Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + [Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[8 * [UnitStat_BonusHealing]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>70</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SummonAirElemental_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_HealingLight_Particle</EffectName>
            <LocalPosition>0,65,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Sunder">
        <DisplayName>Sunder</DisplayName>
        <Description>Target elemental takes 5 damage per level of the caster.</Description>
        <FormattedDescription>Target elemental takes %d damage.</FormattedDescription>
        <Image>T_Sunder_Painting.png</Image>
        <IconFG>T_Sunder_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <SpellTargetCreatureType>Elemental</SpellTargetCreatureType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Geomancy</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>15</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel] * -5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Sunder_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Sunder_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Sundered">
        <DisplayName>Sundered</DisplayName>
        <Description>Unit's defense is reduced by 25%.</Description>
        <FormattedDescription>Unit's defense is reduced by %d.</FormattedDescription>
        <Image>Ability_PoisonousI_Icon.png</Image>
        <IconFG>Ability_PoisonousI_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <DisplayName>Sundered</DisplayName>
            <Duration>5</Duration>
            <Effect>E_Poison_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_Defense_Pierce] * -.5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Poisoned1_01</HitSoundFX>
        <HitSoundFX>Spell_Poisoned1_02</HitSoundFX>
    </SpellDef>
    <SpellDef InternalName="SwarmBonus">
        <DisplayName>Swarm Bonus</DisplayName>
        <Description>When a unit attacks, they get a bonus from allies that surrround their target.</Description>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Accuracy</StrVal>
            <Duration>1</Duration>
            <Value>5</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <Duration>1</Duration>
            <Value>1</Value>
        </GameModifier>
    </SpellDef>
    <SpellDef InternalName="Sweep">
        <DisplayName>Sweep</DisplayName>
        <Description>Attack all enemies within a 1 tile radius.</Description>
        <IconFG>Ability_Sweep_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <AllowFriendlyFireInRadius>0</AllowFriendlyFireInRadius>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <Range>0</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>500</AIPriority>
        </AIData>
        <CasterAnimationType>28</CasterAnimationType>
        <SpellDefEffect>
            <EffectName>Y_Sweep_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1.5</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="SyphonStrength">
        <DisplayName>Syphon Strength</DisplayName>
        <Description>The victim's Attack is lowered by 25% and the caster's Attack is increased by 25% unless the victim resists.</Description>
        <Image>T_Erosion_Painting.png</Image>
        <IconFG>T_SyphonStrength_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <SpellTypeDrain>1</SpellTypeDrain>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>18</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <DisplayName>Weakened</DisplayName>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack] * -0.25]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetTroopCount]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] / [Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <ApplyToCaster>1</ApplyToCaster>
            <DisplayName>Strengthened</DisplayName>
            <Duration>-1</Duration>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack] * 0.25]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetTroopCount]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] / [Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SyphonStrengthHit_01</HitSoundFX>
        <SpellCastSoundFX>Spell_SyphonStrengthTravel_01</SpellCastSoundFX>
        <SpellCastEffectName>T_Erosion_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>T_ErosionImpact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Tame">
        <DisplayName>Tame</DisplayName>
        <Description>Take control of the targeted Beast unless it resists.</Description>
        <Image>S_Domination_Painting.png</Image>
        <IconFG>T_Tame_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <Cooldown>10</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Charm</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <SpellTargetCreatureType>Beast</SpellTargetCreatureType>
        <IsResistable>1</IsResistable>
        <Range>1</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Beastlord</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CharmTarget</Attribute>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SilverTongue_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Tame_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Tame_Ability">
        <DisplayName>Tame</DisplayName>
        <Description>Take control of the targeted Beast unless it resists.</Description>
        <Image>S_Domination_Painting.png</Image>
        <IconFG>T_Tame_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Charm</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <SpellTargetCreatureType>Beast</SpellTargetCreatureType>
        <IsResistable>1</IsResistable>
        <Range>1</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CharmTarget</Attribute>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SilverTongue_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Tame_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="TameTwisted_Ability">
        <DisplayName>Tame</DisplayName>
        <Description>Take control of the targeted Twisted unit.</Description>
        <Image>S_Domination_Painting.png</Image>
        <IconFG>T_Tame_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Charm</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <SpellTargetCreatureType>Twisted</SpellTargetCreatureType>
        <Range>1</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CharmTarget</Attribute>
            <Value>100</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_SilverTongue_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Tame_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="TangledWeb">
        <DisplayName>Tangled Web</DisplayName>
        <Description>Target enemy is immobilized for 3 rounds unless they resist.</Description>
        <IconFG>Ability_TangledWeb_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_Moves</StrVal>
            <DisplayName>Webbed</DisplayName>
            <Duration>3</Duration>
            <Effect>E_TangledWeb_Particle</Effect>
            <PerTurn>1</PerTurn>
            <Value>0</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <Duration>3</Duration>
            <PerTurn>1</PerTurn>
            <Value>0</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>15</AIPriority>
        <ValueCalcWrapper>
            <ValueType>IsTargetWorthy</ValueType>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetWeaponTacticalRange]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] < 2]]></Expression>
            </Calculate>
        </ValueCalcWrapper>
        </AIData>
        <HitSoundFX>Spell_TangledWeb_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_TangledWeb_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1.5</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Tectonic_Shift">
        <DisplayName>Tectonic Shift</DisplayName>
        <Description>Teleport to a location and do 50% of your defense as physical damage to all enemies within a 1 radius, putting Stinking Mud in those tiles.</Description>
        <FormattedDescription>Teleport to a location and do 50%% of your defense (%d) as physical damage to all enemies within a 1 radius, putting Stinking Mud in those tiles.</FormattedDescription>
        <IconFG>T_TectonicShift_Icon.png</IconFG>
        <Cooldown>20</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <SpellTargetTileOccupied>Empty</SpellTargetTileOccupied>
        <AllowFriendlyFireInRadius>0</AllowFriendlyFireInRadius>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsCastable>0</IsCastable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>TransportUnit</Attribute>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_Defense_Pierce] * .5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>CreateWorldProp</Attribute>
            <StrVal>Stinking_Mud</StrVal>
            <Duration>3</Duration>
            <DurationOnTile>3</DurationOnTile>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_Moves</StrVal>
            <ApplyToTile>1</ApplyToTile>
            <Duration>3</Duration>
            <DurationOnTile>3</DurationOnTile>
            <Value>0</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Earthquake_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Sunder_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.6</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="ThrowingKnife">
        <DisplayName>Throwing Knife</DisplayName>
        <Description>Throw a knife at a nearby enemy.</Description>
        <IconFG>Ability_ThrowingKnife_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Range>4</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <Value>8</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ThrowingKnifeHit_01</HitSoundFX>
        <HitSoundFX>Spell_ThrowingKnifeHit_02</HitSoundFX>
        <SpellCastSoundFX>Spell_ThrowingKnife_01</SpellCastSoundFX>
        <SpellCastEffectName>Arrow</SpellCastEffectName>
        <SpellCastEffectScale>0.5</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>750</SpellCastProjectileSpeed>
    </SpellDef>
    <SpellDef InternalName="Thunderstrike">
        <DisplayName>Thunderstrike</DisplayName>
        <Description>Teleport to a location and do 10 lightning damage (+2 per air shard) to all enemies within 1 radius.</Description>
        <FormattedDescription>Teleport to a location and do %d lightning damage to all enemies within 1 radius.</FormattedDescription>
        <Image>T_Thunderstrike_Painting.png</Image>
        <IconFG>T_Thunderstrike_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <SpellTargetTileOccupied>Empty</SpellTargetTileOccupied>
        <AllowFriendlyFireInRadius>0</AllowFriendlyFireInRadius>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Air3</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>38</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>TransportUnit</Attribute>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Thunderstrike_01</HitSoundFX>
        <HitSoundFX>Spell_Thunderstrike_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Thunderstrike_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Thunderstrike_Ability">
        <DisplayName>Thunderstrike</DisplayName>
        <Description>Teleport to a location and do 10 lightning damage (+2 per air shard) to all enemies within 1 radius.</Description>
        <FormattedDescription>Teleport to a location and do %d lightning damage to all enemies within 1 radius.</FormattedDescription>
        <Image>T_Thunderstrike_Painting.png</Image>
        <IconFG>T_Thunderstrike_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <SpellTargetTileOccupied>Empty</SpellTargetTileOccupied>
        <AllowFriendlyFireInRadius>0</AllowFriendlyFireInRadius>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IgnoreInvalidTargetsInRadius>1</IgnoreInvalidTargetsInRadius>
        <IsCastable>0</IsCastable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Radius>1</Radius>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>TransportUnit</Attribute>
            <ApplyToSpellRadiusCenterOnly>1</ApplyToSpellRadiusCenterOnly>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Lightning</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards] * 2]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Thunderstrike_01</HitSoundFX>
        <HitSoundFX>Spell_Thunderstrike_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Thunderstrike_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="TidalWave">
        <DisplayName>Tidal Wave</DisplayName>
        <Description>Summon a wave that will damage enemy units.  Tidal wave can only be cast on a target within 4 tiles of a water tile.</Description>
        <Image>S_Erosion_Painting.png</Image>
        <IconFG>S_TidalWave_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>1</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <UnitAppSpecifier>ApplyToAll</UnitAppSpecifier>
        <Radius>1</Radius>
        <RequiredTerrainType>Submerged</RequiredTerrainType>
        <RequiredTerrainTypeMaxDist>4</RequiredTerrainTypeMaxDist>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Water4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards] * 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] + 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetTroopCount]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2] * [Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <CameraShakeDuration>3</CameraShakeDuration>
        <CameraShakeStrength>0.2</CameraShakeStrength>
        <HitSoundFX>Spell_Tidal_Wave</HitSoundFX>
        <ModifierDelay>4.5</ModifierDelay>
        <WorldLightOverrideTime>6</WorldLightOverrideTime>
        <WorldLightOverrideAmbiant>180,180,250</WorldLightOverrideAmbiant>
        <WorldLightOverrideDiffuse>180,180,250</WorldLightOverrideDiffuse>
        <WorldLightOverrideRim0>30,130,250</WorldLightOverrideRim0>
        <WorldLightOverrideRim1>30,30,80</WorldLightOverrideRim1>
        <SpellDefEffect>
            <EffectName>S_WaterWave_Particle</EffectName>
            <LocalPosition>0,20,0</LocalPosition>
            <EffectScale>1.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="TirelessMarch">
        <DisplayName>Tireless March</DisplayName>
        <Description>Increases the movement of the target's army by 1.  Tireless March can only be cast on one unit at a time.</Description>
        <Image>S_TirelessMarch_Painting.png</Image>
        <IconFG>S_TirelessMarch_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyChampionOrSov</SpellTargetType>
        <UniqueSpellUnlock>TirelessMarch</UniqueSpellUnlock>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>40</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustArmyStat</Attribute>
            <StrVal>UnitStat_Moves</StrVal>
            <Duration>-1</Duration>
            <Value>1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>UnlockSpell</Attribute>
            <StrVal>TirelessMarch</StrVal>
            <Duration>-1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_TirelessMarch_01</HitSoundFX>
        <SpellCastEffectName>T_Erosion_Particle</SpellCastEffectName>
        <SpellCastEffectScale>1</SpellCastEffectScale>
        <SpellCastProjectile>1</SpellCastProjectile>
        <SpellCastProjectileSpeed>700</SpellCastProjectileSpeed>
        <SpellDefEffect>
            <EffectName>T_ErosionImpact_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="TitansBreath">
        <DisplayName>Titan's Breath</DisplayName>
        <Description>A gust of wind blows all enemy units back a tile and, unless they resist, knocks them prone.</Description>
        <Image>T_TitansBreath_Painting.png</Image>
        <IconFG>T_TitansBreath_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Air4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>25</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetMovesBack</Attribute>
            <Value>1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetMovesBack</Attribute>
            <IsForSpellResist>1</IsForSpellResist>
            <Value>1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetKnockedProne</Attribute>
            <Duration>1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>25</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Knockback_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_TitansBreath_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.25</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="TitansBreath_Ability">
        <DisplayName>Titan's Breath</DisplayName>
        <Description>A gust of wind blows all enemy units back a tile and, unless they resist, knocks them prone.</Description>
        <Image>T_TitansBreath_Painting.png</Image>
        <IconFG>T_TitansBreath_Icon.png</IconFG>
        <CastTime>1</CastTime>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetMovesBack</Attribute>
            <Value>1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetMovesBack</Attribute>
            <IsForSpellResist>1</IsForSpellResist>
            <Value>1</Value>
        </GameModifier>
        <GameModifier>
            <ModType>TacticalUnit</ModType>
            <Attribute>TargetKnockedProne</Attribute>
            <Duration>1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>25</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Knockback_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_TitansBreath_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.25</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnAllTargets>1</PlayOnAllTargets>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Tornado">
        <DisplayName>Tornado</DisplayName>
        <Description>Units in the targeted army are randomly scattered around the surrounding tiles, immobilized for a turn and take 3 damage per air shard.</Description>
        <Image>S_Tornado_Painting.png</Image>
        <IconFG>S_Tornado_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>1</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <UnitAppSpecifier>ApplyToAll</UnitAppSpecifier>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Air5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>150</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Pierce</AttackStat>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumAirShards] * 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetTroopCount]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * [Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>Immobilize</Attribute>
            <Duration>1</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DisperseStack</Attribute>
            <Radius>4</Radius>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>80</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Tornado_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Tornado_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="TouchOfDarkness">
        <DisplayName>Touch of Darkness</DisplayName>
        <Description>Demons whisper to anyone willing to listen.  Doing so will improve the casters spell mastery, at the cost of a portion of his sanity (+3 spell mastery,  -3 hit points)</Description>
        <Image>S_SummonImp_Painting.png</Image>
        <IconFG>S_TouchofDarkness_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <AlwaysPromptForCaster>1</AlwaysPromptForCaster>
        <Prereq>
            <Type>UnitStat</Type>
            <Attribute>UnitStat_HitPoints</Attribute>
            <Value>4</Value>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>25</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_HitPoints</StrVal>
            <Value>-3</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_MagicPower</StrVal>
            <Value>3</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>0</AIPriority>
        </AIData>
        <HitSoundFX>Spell_TouchOfDarkness_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_SummonImp_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.4</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="TouchOfEntropy">
        <DisplayName>Touch of Entropy</DisplayName>
        <Description>Does 24 damage (+6 per death shard) to unit.  If that unit is killed a Lurk is summoned in its place.</Description>
        <FormattedDescription>Does %d damage to unit, half if the unit resists.  If that unit is killed a Lurk is summoned in its place.</FormattedDescription>
        <Image>T_TouchofEntropy_Painting.png</Image>
        <IconFG>T_TouchOfEntropy_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <IsResistable>1</IsResistable>
        <Range>1</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>60</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards] * -6]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] - 24]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2] * -1]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Lurk</StrVal>
            <UnitClass>Lurk</UnitClass>
            <ApplyIfSpellTargetKilled>1</ApplyIfSpellTargetKilled>
            <Duration>-1</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForSpellResist>1</IsForSpellResist>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards] * -3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] - 12]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>90</AIPriority>
        </AIData>
        <HitSoundFX>Spell_TouchOfEntropy_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_TouchofEntropy_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="TouchOfEntropy_Ability">
        <DisplayName>Touch of Entropy</DisplayName>
        <Description>Does 24 damage (+6 per death shard) to unit.  If that unit is killed a Lurk is summoned in its place.</Description>
        <FormattedDescription>Does %d damage to unit, half if the unit resists.  If that unit is killed a Lurk is summoned in its place.</FormattedDescription>
        <Image>T_TouchofEntropy_Painting.png</Image>
        <IconFG>T_TouchOfEntropy_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Range>1</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards] * -6]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2">
                <Expression><![CDATA[[Calc] - 24]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2] * -1]]></Expression>
            </Calculate>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SummonUnit</Attribute>
            <StrVal>Lurk</StrVal>
            <UnitClass>Lurk</UnitClass>
            <ApplyIfSpellTargetKilled>1</ApplyIfSpellTargetKilled>
            <Duration>-1</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards] * -3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] - 12]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>90</AIPriority>
        </AIData>
        <HitSoundFX>Spell_TouchOfEntropy_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_TouchofEntropy_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.3</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Tremor">
        <DisplayName>Tremor</DisplayName>
        <Description>Target enemy is immobilized and loses all Dodge for 3 seasons (including current season). Can only be cast within your territory.</Description>
        <Image>S_Tremor_Painting.png</Image>
        <IconFG>S_Tremor_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>1</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>FriendlyTerritory</SpellTargetType>
        <SpellTargetTileOccupied>Enemy</SpellTargetTileOccupied>
        <UnitAppSpecifier>ApplyToAll</UnitAppSpecifier>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>20</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>Immobilize</Attribute>
            <Duration>3</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>SetUnitStat</Attribute>
            <StrVal>UnitStat_Dodge</StrVal>
            <Duration>3</Duration>
            <Value>0</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <CameraShakeDuration>2.25</CameraShakeDuration>
        <CameraShakeStrength>0.25</CameraShakeStrength>
        <HitSoundFX>Spell_Tremor_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_Tremor_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="TrueStrike">
        <DisplayName>True Strike</DisplayName>
        <Description>Target is struck with a powerful blow that cannot miss and deals 75% of the attacker's normal damage.</Description>
        <FormattedDescription>Target is struck with a %d Attack that cannot miss.</FormattedDescription>
        <IconFG>Ability_TrueStrike_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <ApproachTargetTile>1</ApproachTargetTile>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <UseWeaponRange>1</UseWeaponRange>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_CombinedAttack] * -0.75]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <CasterAnimationType>31</CasterAnimationType>
        <HitSoundFX>Spell_TrueStrike_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_TrueStrike_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Tutelage">
        <DisplayName>Tutelage</DisplayName>
        <Description>Target unit gains experience at a 25% faster rate.</Description>
        <Image>S_BlessingOfRestoration_Painting.png</Image>
        <IconFG>S_Tutelage_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyUnit</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Air2</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>15</Amount>
        </SpellResourceCost>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <PerTurn>1</PerTurn>
            <Amount>1</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ExpBonus</StrVal>
            <Duration>-1</Duration>
            <Value>25</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>20</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Enchant_04</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_StoneSkin_Particle</EffectName>
            <LocalPosition>0,25,0</LocalPosition>
            <EffectScale>0.5</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="VatulasDragonslayer">
        <DisplayName>Vatula's Dragonslayer</DisplayName>
        <Description>Kills target dragon.</Description>
        <Image>Dragon2.png</Image>
        <IconFG>T_VatulasDragonslayer_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <SpellTargetCreatureType>Dragon</SpellTargetCreatureType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>30</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <DisplayName>No Effect!</DisplayName>
            <Value>0</Value>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
    </SpellDef>
    <SpellDef InternalName="VernalEquinox">
        <DisplayName>Vernal Equinox</DisplayName>
        <Description>Heals all allies for 50% of your current HP.</Description>
        <FormattedDescription>Heals all allies for 50%% of your current HP (%d).</FormattedDescription>
        <IconFG>T_VernalEquinox_Icon.png</IconFG>
        <Cooldown>20</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Heal</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Heal</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetHPCurrent]*.5]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] * [UnitStat_BonusHealing]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>55</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Wellspring_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Heal_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="VetrarsHowl">
        <DisplayName>Vetrar's Howl</DisplayName>
        <Description>Does 12 cold damage (+5 per water shard) to all armies within a 1 tile radius.</Description>
        <Image>S_Snowfall_Painting.png</Image>
        <IconFG>S_VetrarsHowl_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <Cooldown>1</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <UnitAppSpecifier>ApplyToAll</UnitAppSpecifier>
        <Radius>1</Radius>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Water5</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>140</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Cold</AttackStat>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumWaterShards] * 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 12]]></Expression>
            </Calculate>
        </GameModifier>
        <ValidTerrainCategory>Forest</ValidTerrainCategory>
        <ValidTerrainCategory>Land</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>100</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Blizzard_01</HitSoundFX>
        <HitSoundFX>Spell_Blizzard_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Blizzard_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.2</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="WallOfFire">
        <DisplayName>Wall of Fire</DisplayName>
        <Description>Units that attack this city take 10 (+3 per fire shard) in fire damage at the start of combat.</Description>
        <Image>S_WallofFire_Painting.png</Image>
        <IconFG>S_WallofFire_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>20</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>WallOfFire</Attribute>
            <Duration>-1</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>City</ModType>
            <Attribute>BattleAutoCastSpell</Attribute>
            <StrVal>WallOfFire_Effect</StrVal>
            <Duration>-1</Duration>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>50</AIPriority>
        </AIData>
        <HitSoundFX>Spell_WallOfFire_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_WallofFire_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="WallOfFire_Effect">
        <DisplayName>Wall of Fire</DisplayName>
        <Description>Units that attack this city take 10 (+3 per fire shard) in fire damage at the start of combat.</Description>
        <FormattedDescription>Units that attack this city take %d fire damage at the start of combat.</FormattedDescription>
        <Image>S_WallofFire_Painting.png</Image>
        <IconFG>S_MantleofFire_Icon.png</IconFG>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumFireShards] * 3]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] + 10]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>50</AIPriority>
        </AIData>
        <HitSoundFX>Spell_WallOfFireEffect_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_WallofFire_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="WallOfFire_Tactical">
        <DisplayName>Wall of Fire</DisplayName>
        <Description>7 tiles in a line burst into flame that remains for the rest of the battle.  Any unit passing through the fire takes damage.</Description>
        <Image>S_WallofFire_Painting.png</Image>
        <IconFG>S_WallofFire_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>World</SpellBookSortCategory>
        <SpellBookSortSubCategory>Map</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyTerritory</SpellTargetType>
        <SpellTargetTileOccupied>EnemyOrEmpty</SpellTargetTileOccupied>
        <HideInHiergamenon>1</HideInHiergamenon>
        <Radius>6</Radius>
        <RadiusType>LINE_FORWARD</RadiusType>
        <Range>1</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Fire4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>20</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>CreateWorldProp</Attribute>
            <StrVal>TD_Groundfire</StrVal>
            <Duration>-1</Duration>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
            <AttackStat>UnitStat_Attack_Fire</AttackStat>
            <ApplyToTile>1</ApplyToTile>
            <Duration>0</Duration>
            <DurationOnTile>-1</DurationOnTile>
            <Calculate InternalName="Calc" ValueOwner="TargetUnit">
                <Expression><![CDATA[[Unit_GetTroopCount] * 5]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Inferno_01</HitSoundFX>
        <HitSoundFX>Spell_Inferno_02</HitSoundFX>
        <SpellDefEffect>
            <EffectName>U_Inferno_Particle</EffectName>
            <LocalPosition>0, 0 ,0</LocalPosition>
            <EffectScale>0.50</EffectScale>
            <EffectDelay>0.25</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Wellspring">
        <DisplayName>Wellspring</DisplayName>
        <Description>All members of the targeted army heal 24 hit points (+4 per life shard).</Description>
        <Image>T_Wellspring_Painting.png</Image>
        <IconFG>T_Wellspring_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Heal</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Heal</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <UnitAppSpecifier>ApplyToAll</UnitAppSpecifier>
        <HideInHiergamenon>1</HideInHiergamenon>
        <Range>0</Range>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Life4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>35</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumLifeShards] * 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 24]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_BonusHealing]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>55</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Wellspring_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Heal_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Wellspring_Ability">
        <DisplayName>Wellspring</DisplayName>
        <Description>All allies heal 24 hit points (+4 per life shard).</Description>
        <FormattedDescription>All allies heal %d hit points.</FormattedDescription>
        <Image>T_Wellspring_Painting.png</Image>
        <IconFG>T_Wellspring_Icon.png</IconFG>
        <CastTime>1</CastTime>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Heal</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Heal</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsSpecialAbility>1</IsSpecialAbility>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumLifeShards] * 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 24]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_BonusHealing]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>55</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Wellspring_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Heal_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Wellspring_Tactical">
        <DisplayName>Wellspring</DisplayName>
        <Description>All allies heal 24 hit points (+4 per life shard).</Description>
        <FormattedDescription>All allies heal %d hit points.</FormattedDescription>
        <Image>T_Wellspring_Painting.png</Image>
        <IconFG>T_Wellspring_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CastTime>1</CastTime>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Heal</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Heal</SpellSubClass>
        <SpellTargetType>AllFriendlyUnits</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Life4</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>35</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumLifeShards] * 4]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc] + 24]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc3" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Calc2] * [UnitStat_BonusHealing]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc3]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>55</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Wellspring_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Heal_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Wither">
        <DisplayName>Wither</DisplayName>
        <Description>Reduces the attack of the enemy army by 2 (+1 per death shard) for 3 seasons.</Description>
        <Image>T_Wither_Painting.png</Image>
        <IconFG>T_Wither_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <Cooldown>3</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <UnitAppSpecifier>ApplyToAll</UnitAppSpecifier>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>24</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <DisplayName>Withered</DisplayName>
            <Duration>3</Duration>
            <HasUpgradableValue>1</HasUpgradableValue>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] - 2]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Wither_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Wither_Particle</EffectName>
            <LocalPosition>0,30,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Wither_Autocast">
        <DisplayName>Wither</DisplayName>
        <Description>Reduces the attack of the enemy army by 2 (+1 per death shard) unless they resist.</Description>
        <FormattedDescription>Reduces the attack of the enemy army by %d unless they resist.</FormattedDescription>
        <Image>T_Wither_Painting.png</Image>
        <IconFG>T_Wither_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsResistable>1</IsResistable>
        <PreventStackingWith>Wither</PreventStackingWith>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <DisplayName>Withered</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Wither_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] - 2]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] - 2]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Wither_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Wither_Particle</EffectName>
            <LocalPosition>0,30,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Wither_Tactical">
        <DisplayName>Wither</DisplayName>
        <Description>Reduces the attack of the enemy army by 2 (+1 per death shard) unless they resist.</Description>
        <FormattedDescription>Reduces the attack of the enemy army by %d unless they resist.</FormattedDescription>
        <Image>T_Wither_Painting.png</Image>
        <IconFG>T_Wither_Icon.png</IconFG>
        <AutoUnlock>1</AutoUnlock>
        <CanStack>0</CanStack>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitCurse</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>AllEnemyUnits</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsResistable>1</IsResistable>
        <PreventStackingWith>Wither</PreventStackingWith>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Death1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>24</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Attack_Boost</StrVal>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <DisplayName>Withered</DisplayName>
            <Duration>-1</Duration>
            <Effect>E_Wither_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitOwner_GetNumDeathShards] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] - 2]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] - 2]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Wither_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_Wither_Particle</EffectName>
            <LocalPosition>0,30,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="Withstand">
        <DisplayName>Withstand</DisplayName>
        <Description>Caster is immune to Cold, Fire and Lightning damage until their next attack.  This also puts the caster into a defending stance.</Description>
        <IconFG>Ability_Withstand_Icon.png</IconFG>
        <CanStack>0</CanStack>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitEnchantment</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Defensive</SpellClass>
        <SpellSubClass>Buff</SpellSubClass>
        <SpellTargetType>Self</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ResistCold</StrVal>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Value>100</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ResistFire</StrVal>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Value>100</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_ResistLightning</StrVal>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Value>100</Value>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>AdjustUnitStat</Attribute>
            <StrVal>UnitStat_Defense_Pierce</StrVal>
            <Duration>1</Duration>
            <UpdateDurationAtTurnStart>1</UpdateDurationAtTurnStart>
            <Effect>Y_Defend_Particle</Effect>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[UnitStat_Tactical_Auto_Defense_Boost]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_ManaShield_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Y_Ability_Withstand1</EffectName>
            <LocalPosition>0,20,0</LocalPosition>
            <EffectScale>0.8</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
    <SpellDef InternalName="WraithTouch">
        <DisplayName>Wraith Touch</DisplayName>
        <Description>Drains 1 Hit Point per level from the victim unless the victim resists.</Description>
        <FormattedDescription>Drains %d Hit Points from the victim.</FormattedDescription>
        <IconFG>Ability_WraithTouch_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>UnitDamage</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Damage</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <IsResistable>1</IsResistable>
        <IsSpecialAbility>1</IsSpecialAbility>
        <Range>1</Range>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>Lifesteal</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetLevel]]]></Expression>
            </Calculate>
            <Calculate InternalName="Calc2" ValueOwner="CastingUnit">
                <Expression><![CDATA[[Unit_GetTroopCount]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * [Calc2]]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc] * [Calc2]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>10</AIPriority>
        </AIData>
        <HitSoundFX>Spell_DrainLife_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>T_WraithTouch_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>0</SnapToTerrain>
        </SpellDefEffect>
        <SpellDefEffect>
            <EffectName>T_WraithTouchGain_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>1</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>0</SnapToTerrain>
            <PlayOnCaster>1</PlayOnCaster>
        </SpellDefEffect>
    </SpellDef>
</Spells>
