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

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

            [Upgrade] => Array
                (
                )

            [Name] => Ghost Dog
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => units\orc\Spiritwolf\Spiritwolf.mdl
            [uberSplat] => YTDB
            [Missileart] => Abilities\Weapons\ZigguratMissile\ZigguratMissile.mdl
            [Missilespeed] => 1500
            [dice1] => 1
            [RngBuff1] => 250
            [modelScale] => 0.6
            [rangeN1] => 900
            [atkType1] => hero
            [cool1] => 1.2
            [Ubertip] => Evidently, not all go to heaven.
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

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

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

            [abil_factor] => 0.90
            [author] => Ashbringer
            [alpha] => 225
            [authorDisplay] => |cffff6600Ashbringer|r
            [element] => darkness
            [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] => 255
                    [green] => 115
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => -0.133497
                    [y] => 0.146849
                    [z] => 38.4
                    [scale] => 0.85
                    [rot] => 4.71239
                    [file] => war3mapImported\SoulArmor.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_ghostdog
    endglobals
    
    //@export
    function ashbringer_ghostdog_roar takes Tower tower, integer stacks returns nothing
        local Iterate i = Iterate.overUnitsInRangeOfCaster(tower, TARGET_TYPE_CREEPS, 900)
        local Unit next 
        local Buff b
        loop
            set next = i.next()
            exitwhen next == 0
            call Effect.createScaled("Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl", next.getX(), next.getY(), 0, 270, 0.5).setLifetime(1)
            set b = next.getBuffOfType(ashbringer_ghostdog)
            if b != 0 then
                if b.userInt < 100 then
                    call ashbringer_ghostdog.apply( tower, next, b.getLevel() + stacks )
                    set b.userInt = b.userInt + 1
                else
                    call b.refreshDuration()
                endif
            else
                set b = ashbringer_ghostdog.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_ghostdog = BuffType.create(5.0, 0.0, false)
        call ashbringer_ghostdog.setBuffIcon('@@0@@' )
        call mod.addModification(MOD_ATK_DAMAGE_RECEIVED, 0.05, 0.0005)
        call ashbringer_ghostdog.setBuffModifier(mod)
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Damage
                    [code] => call Effect.createScaled("Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl", tower.getX(), tower.getY(), 20, 270, 2.0).setLifetime(1)
        call ashbringer_ghostdog_roar(tower, 6)
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 0.3
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNLament.blp
                            [name] => Forsaken Howl
                            [short_explain] => Attacks have a chance to increase the damage nearby enemies take.
                            [ONDAMAGE_chanceLevelAdd] => 0
                            [long_explain] => Whenever this tower damages a creep it has |cffFFFF8030%|r chance to release a harrowing howl. The howl increases the attack damage received by all creeps in |cffFFFF80900|r range by |cffFFFF805%|r for |cffFFFF805|r seconds. If a creep is already affected by Forsaken Howl then attack damage received is increased by |cffFFFF800.3%|r and the duration is refreshed. Stacks up to |cffFFFF80100|r times.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.3%|r attack damage received
                        )

                )

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

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BHfs
                    [oeValues] => Array
                        (
                            [EditorName] => Forsaken Howl
                            [Buffubertip] => Increased attack damage taken.
                            [TargetArt] => Array
                                (
                                )

                            [Bufftip] => Forsaken Howl
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNLament.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)