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

            [targs1] => Array
                (
                )

            [goldcost] => 1200
            [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.
            [regenMana] => 2.5
            [abilList] => Array
                (
                )

            [Name] => 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] => 737
            [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.39
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -47.774
                    [y] => -0.449
                    [z] => 140.8
                    [scale] => 1
                    [rot] => 0.663225
                    [file] => Abilities\Spells\Items\AIob\AIobTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => 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
                )

            [2] => 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
                )

            [3] => 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
                )

            [4] => 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
                )

            [5] => 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
                )

            [6] => Array
                (
                    [x] => -33.2279
                    [y] => 30.8143
                    [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] => 21.9607
                    [y] => 33.4382
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 3.4593
                    [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] => 20.6418
                    [y] => -17.7349
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 1.13646
                    [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.8483
                    [y] => -7.277
                    [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] => -28.9548
                    [y] => 16.3017
                    [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] => -9.12534
                    [y] => -17.9414
                    [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
                )

        )

    [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.40 + I2R( U.getCaster().getLevel() ) * 0.01 ) then
            call Troll_blizzardslow.applyOnlyTimed( U.getCaster(), Event.getTarget(), 5.00 )
        endif
        if U.getCaster().calcChance( 0.20 + I2R( U.getCaster().getLevel() ) * 0.001 ) then
            call cb_stun.applyOnlyTimed( U.getCaster(), Event.getTarget(), 0.75 )
        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.11,-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.033, 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 |cffFFFF807|r waves of icy spikes which fall down to earth. Each wave deals |cffFFFF80572|r damage in an AoE of |cffFFFF80400|r. Each time a unit is damaged by this spell there is a chance of |cffFFFF8040%|r to slow the unit by |cffFFFF8011%|r for |cffFFFF805|r seconds and a chance of |cffFFFF8020%|r to stun the unit for |cffFFFF800.75|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+25|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] => 10
                            [hero] => 0
                            [DataF1] => 99999
                            [Rng1] => 99999
                            [Cost1] => 0
                            [DataA1] => 7
                            [DataB1] => 572
                            [Area1] => 400
                            [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
        (
        )

)