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

            [targs1] => Array
                (
                )

            [goldcost] => 3000
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1500
            [moveHeight] => 10
            [file] => units\human\WaterElemental\WaterElemental.mdl
            [atkType1] => normal
            [dmgpt1] => 0.4
            [modelScale] => 0.5
            [weapTp1] => missile
            [Missilearc] => 0.25
            [acquire] => 950
            [rangeN1] => 950
            [upgrades] => Array
                (
                )

            [cool1] => 2
            [Ubertip] => An icy spirit that lives in the north. It can invoke an ice nova.
            [backSw1] => 0.77
            [abilList] => Array
                (
                )

            [Name] => Frozen Spirit
            [Missileart] => Abilities\Weapons\LichMissile\LichMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNSummonWaterElemental.blp
            [buildingShadow] => Array
                (
                )

            [turnRate] => 2
            [sides1] => 1
            [uberSplat] => OSMA
            [auto] => Array
                (
                )

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

    [settings] => Array
        (
            [author] => Boekie
            [element] => ice
            [authorDisplay] => |cff00CD00Boekie|r
            [alpha] => 100
            [balanceTip] => Array
                (
                )

            [rarity] => rare
            [version] => 1.0
            [abil_factor] => 0.15
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -17.7247
                    [y] => -31.9067
                    [z] => 0
                    [scale] => 0.06
                    [rot] => 3.68072
                    [file] => Doodads\Icecrown\Terrain\IceGate45\IceGate45.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -49.1805
                    [y] => -16.6798
                    [z] => -25.6
                    [scale] => 0.2
                    [rot] => 4.65565
                    [file] => Doodads\Icecrown\Terrain\ClearIceRock\ClearIceRock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 13.6979
                    [y] => -40.8396
                    [z] => -12.8
                    [scale] => 0.2
                    [rot] => 6.11719
                    [file] => Doodads\Icecrown\Terrain\ClearIceRock\ClearIceRock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => -19.4771
                    [y] => 39.4436
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 5.93412
                    [file] => Doodads\Icecrown\Terrain\ClearIceRock\ClearIceRock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 29.2323
                    [y] => -12.0767
                    [z] => 0
                    [scale] => 0.06
                    [rot] => 1.99721
                    [file] => Doodads\Icecrown\Terrain\IceGate45\IceGate45.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -5.00913
                    [y] => -10.7346
                    [z] => -12.8
                    [scale] => 0.9
                    [rot] => 5.2709
                    [file] => Doodads\Icecrown\Water\IceEdge\IceEdge2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => -1.43201
                    [y] => -9.88148
                    [z] => 6.4
                    [scale] => 0.8
                    [rot] => 1.6057
                    [file] => Abilities\Spells\NightElf\MoonWell\MoonWellTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => 16.5391
                    [y] => 30.2313
                    [z] => 0
                    [scale] => 0.06
                    [rot] => 0.174206
                    [file] => Doodads\Icecrown\Terrain\IceGate45\IceGate45.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => -38.337
                    [y] => 14.6284
                    [z] => 0
                    [scale] => 0.06
                    [rot] => 2.02458
                    [file] => Doodads\Icecrown\Terrain\IceGate45\IceGate45.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => 38.4575
                    [y] => 21.7025
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 4.7822
                    [file] => Doodads\Icecrown\Terrain\ClearIceRock\ClearIceRock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => -2.77379
                    [y] => 5.363
                    [z] => 6.4
                    [scale] => 0.4
                    [rot] => 5.09186
                    [file] => Doodads\Icecrown\Rocks\Icecrown_Crystal\Icecrown_Crystal7.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => -40.0249
                    [y] => -16.099
                    [z] => -12.8
                    [scale] => 0.4
                    [rot] => 4.20954
                    [file] => Doodads\Northrend\Rocks\North_IceClaw\North_IceClaw1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => 8.99948
                    [y] => -37.3881
                    [z] => -25.6
                    [scale] => 0.4
                    [rot] => 1.07949
                    [file] => Doodads\Icecrown\Rocks\Icecrown_Crystal\Icecrown_Crystal7.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => 5.78578
                    [y] => -2.37537
                    [z] => 6.4
                    [scale] => 0.4
                    [rot] => 3.9968
                    [file] => Doodads\Icecrown\Rocks\Icecrown_Crystal\Icecrown_Crystal7.mdl
                    [red] => 100
                    [green] => 100
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [14] => Array
                (
                    [x] => -14.5998
                    [y] => -40.7103
                    [z] => -25.6
                    [scale] => 0.2
                    [rot] => 0.977384
                    [file] => Doodads\Icecrown\Terrain\ClearIceRock\ClearIceRock0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [15] => Array
                (
                    [x] => 11.111
                    [y] => -43.5923
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 5.14872
                    [file] => Doodads\Northrend\Rocks\North_IceClaw\North_IceClaw1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [16] => Array
                (
                    [x] => 37.8654
                    [y] => 6.67667
                    [z] => -6.4
                    [scale] => 0.4
                    [rot] => 2.03386
                    [file] => Doodads\Northrend\Rocks\North_IceClaw\North_IceClaw1.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 //Saves the periodic
    set tower.userInt2 = 0 //Saves the number of novas remaining to fire
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
    //@import  
    BuffType boekie_icySpirit_buff
    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
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => Periodic
                    [code] => local Iterate it
    local Unit target 
    local integer level = tower.getLevel()

    if tower.userInt2 > 0 then 
        set it = Iterate.overUnitsInRangeOfCaster(tower,TARGET_CREEPS,900) 
        set target = it.nextRandom()

        if target != 0 then
            call it.destroy()
            call tower.doSpellDamageAoEUnit(target,200,2100.0+(level*105.0),tower.calcSpellCritNoBonus(),0.5)
            call SFXOnUnit("Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl",target.getUnit(),"origin")

            set it = Iterate.overUnitsInRangeOfUnit(tower,TARGET_CREEPS,target,200) 
            loop
                set target = it.next()
                exitwhen target == 0
                call boekie_icySpirit_buff.apply(tower,target,125+level*5)
            endloop 
        endif 

        set tower.userInt2 = tower.userInt2 - 1 
    else
        //Save the periodic event
        if tower.userInt == 0 then
            set tower.userInt = Event.getCurrentPeriodicEvent()
        endif
        call PeriodicEvent(tower.userInt).disable()
    endif
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [PERIODIC_period] => 0.1
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [3] => Array
                (
                    [name] => On Attack
                    [code] => local integer level = tower.getLevel() 

    if tower.userInt != 0 then
        if level < 15 then
            set tower.userInt2 = 3 
        elseif level < 25 then
            set tower.userInt2 = 4
        else
            set tower.userInt2 = 5
        endif

        call PeriodicEvent(tower.userInt).enable() 
    endif
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNGlacier.blp
                            [visible] => true
                            [name] => Nova Storm
                            [short_explain] => Blasts some enemies with a frost nova.
                            [ONATTACK_chance] => 0.25
                            [ONATTACK_chanceLevelAdd] => 0.005
                            [long_explain] => When this tower attacks there is a |cffFFFF8025%|r chance to hit |cffFFFF803|r creeps in |cffFFFF80900|r range around it with ice novas. A nova hits all creeps in |cffFFFF80200|r AoE dealing |cffFFFF802100|r spelldamage at the centre, dropping off to |cffFFFF8050%|r at the sides. Also slows by |cffFFFF8012.5%|r for |cffFFFF804|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+105|r spelldamage |n|cffFFFF80+0.5%|r chance |n|cffFFFF80+0.5%|r slow |n|cffFFFF80+1|r nova at lvl |cffFFFF8015|r and |cffFFFF8025|r
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

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

        )

)