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

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

            [Upgrade] => Array
                (
                )

            [Name] => Initiate 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] => Not very 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
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local integer randomSpellID=GetRandomInt(1,3)
    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,200,190+tower.getLevel()*7.6,tower.calcSpellCritNoBonus(),0)
    else
        set it = Iterate.overUnitsInRangeOfUnit(tower,TARGET_CREEPS,c,250)
        loop
            set u = it.next()
            exitwhen u == 0
            call KelSlow.applyCustomTimed(tower,u,100,3)
        endloop
        call SFXAtUnit("Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl",c.getUnit())
        call tower.doSpellDamageAoEUnit(c,250,125+tower.getLevel()*5,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 |cffFFFF8066%|r chance, |cffFFFF80200|r AoE, |cffFFFF80190|r damage|n|cffFF8000Frost Nova:|r |cffFFFF8033%|r chance, |cffFFFF80250|r AoE, |cffFFFF80125|r damage, |cffFFFF8010%|r slow for |cffFFFF803|r seconds|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+7.6|r damage (Fire Blast)|n|cffFFFF80+5|r damage (Frost Nova)
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        //@export
        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
        local Modifier slow=Modifier.create() 
        call slow.addModification(MOD_MOVESPEED,0,-0.001) 
        set KelSlow=BuffType.create(0,0,false) // apply custom timed
        call KelSlow.setBuffIcon('@@0@@') 
        call KelSlow.setBuffModifier(slow)
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Bfro
                    [oeValues] => Array
                        (
                            [EditorName] => Slowed
                            [Buffubertip] => This unit is slowed
                            [TargetArt] => Abilities\Spells\Other\FrostDamage\FrostDamage.mdl
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNFrost.blp
                        )

                )

        )

    [units] => Array
        (
        )

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

        )

    [lightning] => Array
        (
        )

)