Array
(
    [scriptVersion] => 8
    [oeValues] => Array
        (
            [auto] => Array
                (
                )

            [Art] => ReplaceableTextures\CommandButtons\BTNBanditMage.blp
            [turnRate] => 3
            [dmgplus1] => 82
            [bldtm] => 1
            [goldcost] => 500
            [sides1] => 1
            [manaN] => 100
            [acquire] => 900
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Adept Elementalist
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => units\creeps\HumanMage\HumanMage.mdl
            [uberSplat] => YTDG
            [Missilespeed] => 3000
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 1
            [modelScale] => 0.6
            [rangeN1] => 900
            [atkType1] => magic
            [cool1] => 2
            [Ubertip] => Little more experienced mage of elements.
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => Array
                (
                )

            [abil_factor] => 0.075
            [author] => Kel-Thuzad, Moppy
            [alpha] => 255
            [authorDisplay] => |cFFFFA500Kel-Thuzad|r, |c006969FFMoppy|r
            [version] => 1.0
            [element] => arcane
            [rarity] => uncommon
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 40.8932
                    [y] => 39.2735
                    [z] => 0
                    [scale] => 0.16
                    [rot] => 0.785398
                    [file] => doodads\cinematic\IcecrownObelisk\IcecrownObelisk.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => alternate
                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [1] => Array
                (
                    [x] => -37.4957
                    [y] => -42.4177
                    [z] => 0
                    [scale] => 0.16
                    [rot] => 0.785398
                    [file] => doodads\cinematic\IcecrownObelisk\IcecrownObelisk.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => alternate
                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [2] => Array
                (
                    [x] => -46.8114
                    [y] => -53.2083
                    [z] => 0
                    [scale] => 0.35
                    [rot] => 3.14159
                    [file] => Doodads\Outland\Rocks\RubbleRock\RubbleRock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [3] => Array
                (
                    [x] => -31.0011
                    [y] => -41.1009
                    [z] => 0
                    [scale] => 0.35
                    [rot] => 0.000000476837
                    [file] => Doodads\Outland\Rocks\RubbleRock\RubbleRock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [4] => Array
                (
                    [x] => 40.6107
                    [y] => 39.3482
                    [z] => 0
                    [scale] => 0.5
                    [rot] => 4.71239
                    [file] => Doodads\Icecrown\Water\IceEdge\IceEdge2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [5] => Array
                (
                    [x] => 22.1938
                    [y] => 51.6925
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 0.349066
                    [file] => Doodads\Icecrown\Rocks\IceBlock\IceBlock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [6] => Array
                (
                    [x] => 29.9318
                    [y] => 30.1503
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 0.349066
                    [file] => Doodads\Icecrown\Rocks\IceBlock\IceBlock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [7] => Array
                (
                    [x] => -38.1054
                    [y] => -41.6838
                    [z] => 76.8
                    [scale] => 0.5
                    [rot] => 1.5708
                    [file] => Abilities\Spells\Items\AIfb\AIfbTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [8] => Array
                (
                    [x] => 39.3493
                    [y] => 50.5483
                    [z] => 0
                    [scale] => 0.35
                    [rot] => 3.49066
                    [file] => Doodads\Icecrown\Rocks\IceBlock\IceBlock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [9] => Array
                (
                    [x] => 41.0848
                    [y] => 35.6175
                    [z] => 76.8
                    [scale] => 0.5
                    [rot] => 1.5708
                    [file] => Abilities\Spells\Items\AIob\AIobTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [10] => Array
                (
                    [x] => 43.047
                    [y] => -42.3661
                    [z] => 0
                    [scale] => 0.16
                    [rot] => 0.785398
                    [file] => doodads\cinematic\IcecrownObelisk\IcecrownObelisk.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => alternate
                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [11] => Array
                (
                    [x] => 42.6276
                    [y] => -41.804
                    [z] => 0
                    [scale] => 0.175
                    [rot] => 5.49779
                    [file] => Doodads\Barrens\Rocks\Crator\Crator0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [12] => Array
                (
                    [x] => 42.78
                    [y] => -44.1739
                    [z] => 83.2
                    [scale] => 0.25
                    [rot] => 1.5708
                    [file] => Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local integer randomSpellID=GetRandomInt(1,5)
    local Creep c = Event.getTarget()
    local Unit u
    local Iterate it
    if randomSpellID<3 then
        call SFXAtUnit("Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl",c.getUnit())
        call tower.doSpellDamageAoEUnit(c,250,500+tower.getLevel()*10,tower.calcSpellCritNoBonus(),0)
    elseif randomSpellID<5 then
        call SFXAtUnit("Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl",c.getUnit())
        call cb_stun.applyOnlyTimed(tower,c,0.5+tower.getLevel()*0.01)
        call tower.doSpellDamage(c,750,tower.calcSpellCritNoBonus())
    else
        set it = Iterate.overUnitsInRangeOfUnit(tower,TARGET_CREEPS,c,250)
        loop
            set u = it.next() //Get the next unit
            exitwhen u == 0 //Stop when there are no more units
            call KelSlow.applyCustomTimed(tower,u,120,3)
        endloop
        call SFXAtUnit("Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl",c.getUnit())
        call tower.doSpellDamageAoEUnit(c,250,50+tower.getLevel()*8,tower.calcSpellCritNoBonus(),0)
    endif
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNDizzy.blp
                            [name] => Elemental Chaos
                            [short_explain] => Casts a random spell on attack
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => Casts one of the following spells on attack:|n|n|cffFF8000Fire Blast:|r |cffFFFF8040%|r chance, |cffFFFF80250|r AoE, |cffFFFF80500|r damage|n|cffFF8000Frost Nova:|r |cffFFFF8020%|r chance, |cffFFFF80250|r AoE, |cffFFFF80250|r damage, |cffFFFF8012%|r slow for |cffFFFF803|r seconds|n|cffFF8000Aftershock:|r |cffFFFF8040%|r chance, |cffFFFF80750|r damage, |cffFFFF800.5|r seconds stun|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+10|r damage (Fire Blast)|n|cffFFFF80+8|r damage (Frost Nova)|n|cffFFFF80+0.01|r seconds stun (Aftershock)
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        //@import
        BuffType KelSlow
    endglobals
    
    //Do not remove or rename this function!
    //Put your initialization tasks here, this function will be called on map init
    private function init takes nothing returns nothing
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

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

        )

    [lightning] => Array
        (
        )

)