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

            [Art] => ReplaceableTextures\CommandButtons\BTNTimberWolf.blp
            [turnRate] => 2
            [bldtm] => 1
            [dmgplus1] => 71
            [goldcost] => 70
            [unitSound] => Wolf
            [sides1] => 9
            [acquire] => 900
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Frigid Dog
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => units\creeps\WhiteWolf\WhiteWolf.mdl
            [uberSplat] => YTDN
            [Missileart] => Abilities\Weapons\ZigguratFrostMissile\ZigguratFrostMissile.mdl
            [Missilespeed] => 1500
            [dice1] => 1
            [RngBuff1] => 250
            [modelScale] => 0.6
            [rangeN1] => 900
            [atkType1] => normal
            [cool1] => 1.2
            [Ubertip] => Known for shedding hair EVERYWHERE.
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
            [teamColor] => 2
        )

    [settings] => Array
        (
            [balanceTip] => Array
                (
                )

            [abil_factor] => 0.90
            [author] => Ashbringer
            [alpha] => 225
            [authorDisplay] => |cffff6600Ashbringer|r
            [element] => ice
            [rarity] => uncommon
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.2528
                    [y] => 0.042405
                    [z] => -19.2
                    [scale] => 1.55
                    [rot] => 0.523599
                    [file] => Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl
                    [red] => 155
                    [green] => 155
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [1] => Array
                (
                    [x] => -0.00141052
                    [y] => 0.0821423
                    [z] => 19.2
                    [scale] => 0.85
                    [rot] => 3.78737
                    [file] => Abilities\Spells\Other\FrostDamage\FrostDamage.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] => Header
                    [code] => globals
        BuffType ashbringer_icedog
    endglobals
    
    //@export
    function ashbringer_icedog_roar takes Tower tower, integer stacks returns nothing
        local Iterate i = Iterate.overUnitsInRangeOfCaster(tower, TARGET_TYPE_TOWERS, 420)
        local Unit next 
        local Buff b
        
        call Effect.createScaled("Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl", tower.getX(), tower.getY(), 20, 270, 2.0).destroy()
        loop
            set next = i.next()
            exitwhen next == 0
            set b = next.getBuffOfType(ashbringer_icedog)
            if b != 0 then
                if b.userInt < 100 then
                    call ashbringer_icedog.apply( tower, next, b.getLevel() + stacks)
                    set b.userInt = b.userInt + 1
                else
                    call b.refreshDuration()
                endif
            else
                set b = ashbringer_icedog.apply( tower, next, tower.getLevel() * stacks)
                set b.userInt = 0
            endif
        endloop
    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 mod = Modifier.create()
        
        set ashbringer_icedog = BuffType.create(5.0, 0.0, true)
        call ashbringer_icedog.setBuffIcon('@@0@@' )
        call mod.addModification(MOD_ATK_CRIT_CHANCE, 0.03, 0.0005)
        call ashbringer_icedog.setBuffModifier(mod)
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Damage
                    [code] => call ashbringer_icedog_roar(tower, 4)
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 0.3
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNAvatar.blp
                            [name] => Ice Howl
                            [short_explain] => Whenever this tower damages a unit it has a chance to increase the critical strike chance of nearby towers.
                            [ONDAMAGE_chanceLevelAdd] => 0
                            [long_explain] => Whenever this tower damages a unit it has |cffFFFF8030%|r chance to release a battle cry. The cry increases the critical strike chance of all towers in |cffFFFF80420|r range by |cffFFFF803%|r for |cffFFFF805|r seconds. If a tower already has the Ice Howl buff the critical strike chance is increased by |cffFFFF800.2%|r and the duration is refreshed. Stacks up to |cffFFFF80100|r times.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.2%|r critical strike chance
                        )

                )

            [2] => Array
                (
                    [name] => On Tower Creation
                    [code] => call SetUnitColor(tower.getUnit(), ConvertPlayerColor(2))
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BHfs
                    [oeValues] => Array
                        (
                            [EditorName] => Ice Howl
                            [Buffubertip] => Increased attack critical strike chance.
                            [TargetArt] => Array
                                (
                                )

                            [Bufftip] => Ice Howl
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNAvatar.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)