Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [scale] => 1
            [RngBuff1] => 250
            [MissileHoming] => 1
            [Upgrade] => Array
                (
                )

            [targs1] => Array
                (
                )

            [lumbercost] => 0
            [goldcost] => 2500
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 10000
            [file] => units\other\HeroArchMageGhost\HeroArchMageGhost.mdl
            [modelScale] => 0.6
            [atkType1] => magic
            [weapTp1] => missile
            [acquire] => 800
            [rangeN1] => 900
            [upgrades] => Array
                (
                )

            [cool1] => 2
            [Ubertip] => Let all who live in the world stand in awe of him.
            [abilList] => Array
                (
                )

            [Name] => Divine Elementalist
            [Art] => ReplaceableTextures\CommandButtons\BTNBanditMage.blp
            [buildingShadow] => Array
                (
                )

            [turnRate] => 0.6
            [unitSound] => HeroArchMage
            [sides1] => 1
            [auto] => Array
                (
                )

            [dmgplus1] => 416
            [bldtm] => 1
        )

    [settings] => Array
        (
            [author] => Kel-Thuzad
            [element] => arcane
            [authorDisplay] => |CFFF7C67BKel-Thuzad|r
            [alpha] => 255
            [balanceTip] => Array
                (
                )

            [rarity] => uncommon
            [version] => 1.0
            [abil_factor] => 0.075
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 37.4945
                    [y] => 38.8582
                    [z] => 0
                    [scale] => 0.6
                    [rot] => 1.74533
                    [file] => Doodads\Icecrown\Water\IceEdge\IceEdge1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -38.3991
                    [y] => -41.3606
                    [z] => 6.4
                    [scale] => 0.25
                    [rot] => 0.785398
                    [file] => Doodads\Ruins\Props\RuinsObelisk\RuinsObelisk1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 37.2576
                    [y] => 38.4731
                    [z] => 6.4
                    [scale] => 0.25
                    [rot] => 0.785398
                    [file] => Doodads\Ruins\Props\RuinsObelisk\RuinsObelisk1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => -37.8159
                    [y] => -38.502
                    [z] => 70.4
                    [scale] => 1
                    [rot] => 5.23599
                    [file] => Abilities\Spells\Items\AIfb\AIfbTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 36.2255
                    [y] => 37.5619
                    [z] => 70.4
                    [scale] => 0.6
                    [rot] => 5.23599
                    [file] => Abilities\Spells\Items\AIob\AIobTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -40.8535
                    [y] => -26.2771
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 4.88692
                    [file] => Doodads\Outland\Rocks\RubbleRock\RubbleRock3.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => -16.1008
                    [y] => -31.3165
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 4.88692
                    [file] => Doodads\Outland\Rocks\RubbleRock\RubbleRock4.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => -46.6603
                    [y] => -53.3963
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 3.31613
                    [file] => Doodads\Outland\Rocks\RubbleRock\RubbleRock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => -28.1712
                    [y] => -45.2964
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 1.74533
                    [file] => Doodads\Outland\Rocks\RubbleRock\RubbleRock3.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => 39.5798
                    [y] => 62.4536
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 3.31613
                    [file] => Doodads\Icecrown\Rocks\IceBlock\IceBlock2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => 14.0961
                    [y] => 62.5571
                    [z] => -6.4
                    [scale] => 0.3
                    [rot] => 3.31613
                    [file] => Doodads\Icecrown\Rocks\IceBlock\IceBlock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => 26.9467
                    [y] => 27.2376
                    [z] => 6.4
                    [scale] => 0.2
                    [rot] => 0.174533
                    [file] => Doodads\Icecrown\Rocks\IceBlock\IceBlock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => 38.5056
                    [y] => -39.12
                    [z] => 6.4
                    [scale] => 0.25
                    [rot] => 0.785398
                    [file] => Doodads\Ruins\Props\RuinsObelisk\RuinsObelisk1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => 43.89
                    [y] => -44.3679
                    [z] => 6.4
                    [scale] => 0.2
                    [rot] => 5.23599
                    [file] => Doodads\Barrens\Rocks\Barrens_Rocks\Barrens_Rocks9.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [14] => Array
                (
                    [x] => 31.9017
                    [y] => -41.413
                    [z] => 6.4
                    [scale] => 0.2
                    [rot] => 2.0944
                    [file] => Doodads\Barrens\Rocks\Barrens_Rocks\Barrens_Rocks9.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [15] => Array
                (
                    [x] => 37.2252
                    [y] => -41.3228
                    [z] => 89.6
                    [scale] => 0.25
                    [rot] => 5.23599
                    [file] => Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [16] => Array
                (
                    [x] => 38.4444
                    [y] => -40.635
                    [z] => 0
                    [scale] => 0.15
                    [rot] => 5.23599
                    [file] => Doodads\Barrens\Rocks\Crator\Crator0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [17] => Array
                (
                    [x] => -37.0473
                    [y] => 36.7043
                    [z] => 6.4
                    [scale] => 0.25
                    [rot] => 0.785398
                    [file] => Doodads\Ruins\Props\RuinsObelisk\RuinsObelisk1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [18] => Array
                (
                    [x] => -35.7629
                    [y] => 38.9762
                    [z] => 0
                    [scale] => 0.35
                    [rot] => 5.23599
                    [file] => Abilities\Spells\Other\Tornado\TornadoElementalSmall.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [19] => Array
                (
                    [x] => -38.0779
                    [y] => 35.5728
                    [z] => 70.4
                    [scale] => 0.6
                    [rot] => 5.23599
                    [file] => Abilities\Spells\Items\AIlb\AIlbTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [20] => Array
                (
                    [x] => -29.3813
                    [y] => 28.4204
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 5.23599
                    [file] => Doodads\LordaeronSummer\Rocks\Lords_Rock\Lords_Rock9.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [21] => Array
                (
                    [x] => -50.4466
                    [y] => 35.5333
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 5.23599
                    [file] => Doodads\LordaeronSummer\Rocks\Lords_Rock\Lords_Rock9.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [22] => Array
                (
                    [x] => -37.9125
                    [y] => 45.5708
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 5.23599
                    [file] => Doodads\LordaeronSummer\Rocks\Lords_Rock\Lords_Rock9.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [23] => Array
                (
                    [x] => -23.6717
                    [y] => 46.6195
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 5.23599
                    [file] => Doodads\LordaeronSummer\Rocks\Lords_Rock\Lords_Rock9.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [24] => Array
                (
                    [x] => -51.6044
                    [y] => 50.2837
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 5.23599
                    [file] => Doodads\LordaeronSummer\Rocks\Lords_Rock\Lords_Rock9.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Tower Creation
                    [code] => set tower.userInt=0 //Stores how many consecutive times last spell was cast
set tower.userInt2=0 //Stores which spell was last cast
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
    //@import
    BuffType KelSlow
endglobals
//The init function
private function init takes nothing returns nothing
endfunction
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNSpiritLink.blp
                            [visible] => true
                            [name] => Elemental Fury
                            [short_explain] => Consecutive casts of the same spell will deal more damage
                            [long_explain] => Consecutive casts of the same spell will deal |cffFFFF8050%|r more damage.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1%|r damage
                        )

                )

            [2] => Array
                (
                    [name] => On Attack
                    [code] => local integer randomSpellID=GetRandomInt(1,10) //RandomSpell
    local Creep c = Event.getTarget()
    local Unit u
    local integer count = 0 //counter for lightnings
    local Iterate it
    if randomSpellID<4 then //FireBlast 
        if tower.userInt2 == 1 then 
            set tower.userInt = tower.userInt + 1 
        else
            set tower.userInt = 1
            set tower.userInt2 = 1
        endif
        call SFXAtUnit("Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl",c.getUnit()) //BANG!!
        call tower.doSpellDamageAoEUnit(c,300,(3000+tower.getLevel()*60)*(1+((0.5+tower.getLevel()*0.01)*(tower.userInt-1))),tower.calcSpellCritNoBonus(),0)
    elseif randomSpellID<7 then //Aftershock
        if tower.userInt2 == 2 then 
            set tower.userInt = tower.userInt + 1 
        else
            set tower.userInt = 1
            set tower.userInt2 = 2
        endif
        call SFXAtUnit("Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl",c.getUnit()) //just a pretty SFX
        call cb_stun.applyOnlyTimed(tower,c,0.7+tower.getLevel()*0.02 )
        call tower.doSpellDamage(c,6000*(1+((0.5+tower.getLevel()*0.01)*(tower.userInt-1))),tower.calcSpellCritNoBonus())
    elseif randomSpellID<9 then //FrostNova
        if tower.userInt2 == 3 then 
            set tower.userInt = tower.userInt + 1 
        else
            set tower.userInt = 1
            set tower.userInt2 = 3
        endif
        set it = Iterate.overUnitsInRangeOfUnit(tower,TARGET_CREEPS,c,300)
        loop //slow
            set u = it.next()
            exitwhen u == 0 
            call KelSlow.applyCustomTimed(tower,u,150,4) //slow
        endloop
        call SFXAtUnit("Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl",c.getUnit()) //sfx
        call SFXAtUnit("Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl",c.getUnit()) //sfx
        call tower.doSpellDamageAoEUnit(c,300,(2000+tower.getLevel()*80)*(1+((0.5+tower.getLevel()*0.01)*(tower.userInt-1))),tower.calcSpellCritNoBonus(),0)
    else //Lightning Burst
        if tower.userInt2 == 4 then 
            set tower.userInt = tower.userInt + 1 
        else
            set tower.userInt = 1
            set tower.userInt2 = 4
        endif
        set it = Iterate.overUnitsInRangeOfCaster(tower,TARGET_CREEPS,900)
        loop //SFX+lightnings
            set u = it.next()
            set count = count+1
            exitwhen count == 7 or u == 0 //"count" is number of lightnings to create
            call SFXAtUnit("Abilities\\Weapons\\Bolt\\BoltImpact.mdl",u.getUnit()) //SFX+sound on unit
            call tower.doSpellDamage(u,(3000+tower.getLevel()*60)*(1+((0.5+tower.getLevel()*0.01)*(tower.userInt-1))),tower.calcSpellCritNoBonus()) //damage
            call Lightning.createFromUnitToUnit("CLPB", tower, u).setLifetime(0.15) //lightning itself
        endloop
        if u != 0 then
            call it.destroy()
        endif
    endif
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNDizzy.blp
                            [visible] => true
                            [name] => Elemental Chaos
                            [short_explain] => This wizard casts a spell when he attacks
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => Elementalist casts one of the following spells on attack:|n|n|cffFF8000Fire Blast:|r |cffFFFF8030%|r chance, |cffFFFF80300|r AoE, |cffFFFF803000|r damage|n|cffFF8000Frost Nova:|r |cffFFFF8020%|r chance, |cffFFFF80300|r AoE, |cffFFFF802000|r damage, |cffFFFF8015%|r slow for |cffFFFF804|r seconds|n|cffFF8000Aftershock:|r |cffFFFF8030%|r chance, |cffFFFF806000|r damage, |cffFFFF800.7|r seconds stun|n|cffFF8000Lightning Burst:|r |cffFFFF8020%|r chance, |cffFFFF803000|r damage, affects |cffFFFF806|r random targets in |cffFFFF80900|r range |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+60|r damage (Fire Blast)|n|cffFFFF80+80|r damage (Frost Nova)|n|cffFFFF80+0.02|r seconds stun (Aftershock)|n|cffFFFF80+60|r damage (Lightning Burst)
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => KelSlow
                )

        )

)