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

            [targs1] => Array
                (
                )

            [goldcost] => 500
            [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] => Icy Spirit
            [Missileart] => Abilities\Weapons\LichMissile\LichMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNSummonWaterElemental.blp
            [buildingShadow] => Array
                (
                )

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

            [dmgplus1] => 168
            [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] => -18.2636
                    [y] => -38.356
                    [z] => 0
                    [scale] => 0.06
                    [rot] => 3.56707
                    [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] => -19.2
                    [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] => 16.9991
                    [y] => -42.1917
                    [z] => -25.6
                    [scale] => 0.2
                    [rot] => 5.60251
                    [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
                )

        )

    [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
        //@export  
        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
        local Modifier slow=Modifier.create() 
        
        call slow.addModification(MOD_MOVESPEED,0,-0.001) 
        set boekie_icySpirit_buff=BuffType.create(5,0,false)  
        call boekie_icySpirit_buff.setBuffIcon('@@0@@') 
        call boekie_icySpirit_buff.setBuffModifier(slow)
	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,350.0+(level*17.5),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 |cffFFFF80350|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+17.5|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
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BCbf
                    [oeValues] => Array
                        (
                            [Bufftip] => Nova Storm
                            [Buffubertip] => This creep has been hit by a nova storm; its movement speed is reduced.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNGlacier.blp
                            [TargetArt] => Abilities\Spells\Other\BreathOfFrost\BreathOfFrostTarget.mdl
                            [EditorName] => Nova Storm
                        )

                )

        )

    [units] => Array
        (
        )

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

        )

)