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

            [targs1] => Array
                (
                )

            [goldcost] => 2400
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 900
            [moveHeight] => 65
            [file] => units\creeps\IceTrollShadowPriest\IceTrollShadowPriest.mdl
            [manaN] => 100
            [atkType1] => pierce
            [modelScale] => 0.5
            [weapTp1] => missile
            [acquire] => 550
            [rangeN1] => 900
            [upgrades] => Array
                (
                )

            [cool1] => 1.5
            [Ubertip] => His father said to him: Stay cool. And he did.
            [regenMana] => 2.5
            [abilList] => Array
                (
                )

            [Name] => Totally Frozen Troll
            [Missileart] => Abilities\Weapons\ZigguratFrostMissile\ZigguratFrostMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNIceTrollShaman.blp
            [buildingShadow] => Array
                (
                )

            [turnRate] => 0.1
            [unitSound] => ForestTrollShadowPriest
            [sides1] => 1
            [uberSplat] => OSMA
            [auto] => Array
                (
                )

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

    [settings] => Array
        (
            [author] => cedi
            [element] => ice
            [authorDisplay] => cedi
            [alpha] => 255
            [balanceTip] => |cffFFFF00-50% |rdmg to undead|n|cffFFFF00+25% |rdmg to orcs|n|cffFFFF00+25% |rdmg to humanoids
            [rarity] => uncommon
            [version] => 1.0
            [abil_factor] => 0.36
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -5.32392
                    [y] => -38.769
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 4.11898
                    [file] => Doodads\Northrend\Rocks\North_WebRocks\North_WebRocks0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -9.3556
                    [y] => -16.0734
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 5.0091
                    [file] => Abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 4.99306
                    [y] => 30.7528
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 5.0091
                    [file] => Abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => -25.5128
                    [y] => 4.932
                    [z] => 0
                    [scale] => 0.9
                    [rot] => 2.17433
                    [file] => Doodads\Northrend\Rocks\North_IceClaw\North_IceClaw4.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 19.2313
                    [y] => -19.2067
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 2.97489
                    [file] => Abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => 2.15047
                    [y] => 5.01787
                    [z] => 64
                    [scale] => 0.5
                    [rot] => 2.97491
                    [file] => Abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => -26.7925
                    [y] => 30.4029
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 4.11898
                    [file] => Doodads\Northrend\Rocks\North_WebRocks\North_WebRocks0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => 27.5954
                    [y] => 32.9145
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 0.64684
                    [file] => Doodads\Northrend\Rocks\North_WebRocks\North_WebRocks0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 29.6771
                    [y] => -9.59581
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 1.13143
                    [file] => Doodads\Northrend\Rocks\North_WebRocks\North_WebRocks0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => 33.7511
                    [y] => 8.35278
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 2.97489
                    [file] => Abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => -14.6665
                    [y] => 32.7752
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 2.97489
                    [file] => Abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => -16.5187
                    [y] => -16.5868
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 2.97489
                    [file] => Abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => -10.3341
                    [y] => -20.0942
                    [z] => 32
                    [scale] => 0.3
                    [rot] => 2.97489
                    [file] => Abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => 22.2898
                    [y] => -0.187525
                    [z] => 0
                    [scale] => 0.9
                    [rot] => 4.84601
                    [file] => Doodads\Northrend\Rocks\North_IceClaw\North_IceClaw4.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_UNDEAD
                    [base] => -0.5
                    [add] => 0
                )

            [1] => Array
                (
                    [id] => MOD_DMG_TO_ORC
                    [base] => 0.25
                    [add] => 0
                )

            [2] => Array
                (
                    [id] => MOD_DMG_TO_HUMANOID
                    [base] => 0.25
                    [add] => 0
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType Troll_blizzardslow
        Cast Troll_blizzard
    endglobals
    
    function OnBlizzard takes DummyUnit U returns nothing
        if U.getCaster().calcChance( 0.45 + I2R( U.getCaster().getLevel() ) * 0.01 ) then
            call Troll_blizzardslow.applyOnlyTimed( U.getCaster(), Event.getTarget(), 5.50 )
        endif
        if U.getCaster().calcChance( 0.25 + I2R( U.getCaster().getLevel() ) * 0.001 ) then
            call cb_stun.applyOnlyTimed( U.getCaster(), Event.getTarget(), 1.00 )
        endif
    endfunction
    
    //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 mod2 = Modifier.create()
        set Troll_blizzardslow = BuffType.create(0.0,0.0,false)
        call mod2.addModification(MOD_MOVESPEED,-0.14,-0.001)
        call Troll_blizzardslow.setBuffModifier(mod2)
        call Troll_blizzardslow.setBuffIcon('@@4@@')
        set Troll_blizzard = Cast.create( '@@0@@', "blizzard", 9.00 )
        call Troll_blizzard.setDamageEvent( EventHandler.OnBlizzard )
        call Troll_blizzardslow.setStackingGroup("cedi_troll_blizzard")
	endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Autocast
                    [code] => local unit u = Event.getTarget().getUnit() 
    call Troll_blizzard.pointCastFromCasterOnPoint( tower, GetUnitX( u ), GetUnitY( u ), 1.00 + I2R( tower.getLevel() ) * 0.05, tower.calcSpellCritNoBonus() )
    set u = null
                    [values] => Array
                        (
                            [caster_art] => 
                            [icon] => ReplaceableTextures\CommandButtons\BTNBlizzard.blp
                            [AUTOCAST_cooldown] => 10
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [AUTOCAST_isExtended] => false
                            [long_explain] => Summons |cffFFFF808|r waves of icy spikes which fall down to earth. Each wave deals |cffFFFF801000|r damage in an AoE of |cffFFFF80500|r. Each time a unit is damaged by this spell there is a chance of |cffFFFF8045%|r to slow the unit by |cffFFFF8014%|r for |cffFFFF805.5|r seconds and a chance of |cffFFFF8025%|r to stun the unit for |cffFFFF801|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+50|r damage|n|cffFFFF80+0.01%|r slow|n|cffFFFF80+1%|r chance for slow|r|n|cffFFFF80+0.1%|r chance for stun
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_UNIT
                            [AUTOCAST_manacost] => 95
                            [AUTOCAST_range] => 900
                            [AUTOCAST_buffType] => 0
                            [name] => Blizzard
                            [AUTOCAST_targetSelf] => true
                            [short_explain] => Summons a migthy blizzard. Each wave has a chance to slow and stun all enemy units in the target area.
                            [AUTOCAST_targetType] => 0
                            [target_art] => 
                            [AUTOCAST_autoRange] => 900
                        )

                )

        )

    [abilities] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => AHbz
                    [oeValues] => Array
                        (
                            [DataC1] => 12
                            [hero] => 0
                            [DataF1] => 99999
                            [Rng1] => 99999
                            [Cost1] => 0
                            [DataA1] => 8
                            [DataB1] => 1000
                            [Area1] => 500
                            [DataD1] => 0
                            [EfctID1] => @@1@@
                            [Art] => ReplaceableTextures\CommandButtons\BTNBlizzard.blp
                            [levels] => 1
                            [BuffID1] => @@3@@,@@2@@
                        )

                )

        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => XHbz
                    [oeValues] => Array
                        (
                            [EditorSuffix] => meins
                            [Buffart] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [id] => @@2@@
                    [derivedFrom] => BHbz
                    [oeValues] => Array
                        (
                            [EditorSuffix] => meins
                            [Buffart] => Array
                                (
                                )

                        )

                )

            [2] => Array
                (
                    [id] => @@3@@
                    [derivedFrom] => BHbd
                    [oeValues] => Array
                        (
                            [EditorSuffix] => meins
                            [Buffubertip] => This unit is damaged by blizzard.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNBlizzard.blp
                            [EditorName] => Blizzard
                        )

                )

            [3] => Array
                (
                    [id] => @@4@@
                    [derivedFrom] => Bfro
                    [oeValues] => Array
                        (
                            [Bufftip] => Slowed
                            [Buffubertip] => This unit has decreased movement speed.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNFrost.blp
                            [EditorName] => Slowed
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)