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

            [Art] => ReplaceableTextures\CommandButtons\BTNRockbiterWeapon.blp
            [dmgplus1] => 4708
            [bldtm] => 1
            [goldcost] => 3000
            [unitSound] => Tauren
            [sides1] => 1
            [acquire] => 800
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Rockbiter Totem
            [weapTp1] => missile
            [file] => .mdl
            [MissileHoming] => 1
            [uberSplat] => OSMA
            [Missilespeed] => 1600
            [Missileart] => Abilities\Spells\NightElf\ThornsAura\ThornsAuraDamage.mdl
            [dice1] => 1
            [RngBuff1] => 250
            [modelScale] => 0.1
            [rangeN1] => 800
            [atkType1] => siege
            [cool1] => 3
            [Ubertip] => Apply directly to forehead.
            [scaleBull] => 0
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

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

            [abil_factor] => 0.35
            [author] => Ashbringer
            [alpha] => 255
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [element] => nature
            [rarity] => unique
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 1.16817
                    [y] => -0.190388
                    [z] => -25.6
                    [scale] => 0.15
                    [rot] => 2.3562
                    [file] => Doodads\Cityscape\Structures\City_ColumnDouble\City_ColumnDouble.mdl
                    [red] => 145
                    [green] => 115
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => 0.748423
                    [y] => 1.30688
                    [z] => -25.6
                    [scale] => 0.15
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_ColumnDouble\City_ColumnDouble.mdl
                    [red] => 145
                    [green] => 115
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => 0.0546482
                    [y] => 0.0465329
                    [z] => -25.6
                    [scale] => 2.1
                    [rot] => 3.66519
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 55
                    [green] => 215
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => -0.155609
                    [y] => -0.132763
                    [z] => 0
                    [scale] => 0.55
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 145
                    [green] => 115
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => -0.0371141
                    [y] => -0.0281182
                    [z] => 115.2
                    [scale] => 0.7
                    [rot] => 0.785398
                    [file] => Abilities\Spells\NightElf\TargetArtLumber\TargetArtLumber.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -3.14
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => -32.0807
                    [y] => -31.4613
                    [z] => -19.2
                    [scale] => 0.42
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 145
                    [green] => 115
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => -0.0562247
                    [y] => -0.282819
                    [z] => -6.4
                    [scale] => 1.1
                    [rot] => 6.26573
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 55
                    [green] => 215
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => 32.337
                    [y] => -31.929
                    [z] => -19.2
                    [scale] => 0.42
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 145
                    [green] => 115
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => -0.117879
                    [y] => 0.105598
                    [z] => 38.4
                    [scale] => 0.55
                    [rot] => 4.71239
                    [file] => Abilities\Spells\NightElf\TargetArtLumber\TargetArtLumber.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => 30.4961
                    [y] => 29.9626
                    [z] => -19.2
                    [scale] => 0.42
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 145
                    [green] => 115
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => -32.7342
                    [y] => -31.4984
                    [z] => 38.4
                    [scale] => 0.65
                    [rot] => 4.67748
                    [file] => Abilities\Spells\Undead\Possession\PossessionTarget.mdl
                    [red] => 1
                    [green] => 225
                    [blue] => 85
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => 22.5755
                    [y] => 21.9693
                    [z] => 0
                    [scale] => 0.26
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 145
                    [green] => 115
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => -21.8754
                    [y] => -23.3473
                    [z] => 0
                    [scale] => 0.26
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 145
                    [green] => 115
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => -22.6961
                    [y] => 22.2427
                    [z] => 0
                    [scale] => 0.26
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 145
                    [green] => 115
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => 22.6204
                    [y] => -22.2082
                    [z] => 0
                    [scale] => 0.26
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 145
                    [green] => 115
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => -30.8065
                    [y] => 31.8316
                    [z] => -19.2
                    [scale] => 0.42
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 145
                    [green] => 115
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => 31.2395
                    [y] => -32.7074
                    [z] => 38.4
                    [scale] => 0.65
                    [rot] => 4.67748
                    [file] => Abilities\Spells\Undead\Possession\PossessionTarget.mdl
                    [red] => 1
                    [green] => 225
                    [blue] => 85
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => -0.117049
                    [y] => -0.201224
                    [z] => 70.4
                    [scale] => 0.35
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 145
                    [green] => 115
                    [blue] => 25
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [18] => Array
                (
                    [x] => 29.4473
                    [y] => 29.9233
                    [z] => 38.4
                    [scale] => 0.65
                    [rot] => 4.67748
                    [file] => Abilities\Spells\Undead\Possession\PossessionTarget.mdl
                    [red] => 1
                    [green] => 225
                    [blue] => 85
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [19] => Array
                (
                    [x] => -31.5336
                    [y] => 31.335
                    [z] => 38.4
                    [scale] => 0.65
                    [rot] => 4.67748
                    [file] => Abilities\Spells\Undead\Possession\PossessionTarget.mdl
                    [red] => 1
                    [green] => 225
                    [blue] => 85
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [20] => Array
                (
                    [x] => -0.173762
                    [y] => 41.7693
                    [z] => 153.6
                    [scale] => 0.75
                    [rot] => 1.5708
                    [file] => war3mapImported\GlowingRunes1_np.mdl
                    [red] => 155
                    [green] => 255
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -4.71
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [21] => Array
                (
                    [x] => -0.0755597
                    [y] => 0.0459156
                    [z] => 38.4
                    [scale] => 1.05
                    [rot] => 2.84489
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 55
                    [green] => 215
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType ashbringer_rockbiter_buff
    endglobals
    
    function ashbringer_rockbiter_hit takes Buff b returns nothing
        local Creep target = Event.getTarget()
        local real armor_ratio = 1 - target.getCurrentArmorDamageReduction()
        local real damage = Event.damage
        local real ignore = 0.15 + (b.getCaster() * 0.006)

        if armor_ratio > 0 then
            set damage = damage / armor_ratio
        endif

        if Event.damage < damage then
            set Event.damage = damage * ignore + (Event.damage * (1 - ignore))
        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 mod = Modifier.create()
        
        set ashbringer_rockbiter_buff = BuffType.createAuraEffectType(true)
        call ashbringer_rockbiter_buff.setBuffIcon('@@0@@')
        call mod.addModification(MOD_DPS_ADD, 150, 6)
        call ashbringer_rockbiter_buff.setBuffModifier(mod)
        call ashbringer_rockbiter_buff.addEventOnDamage(EventHandler.ashbringer_rockbiter_hit, 1.0, 0.0)
    endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Tower Aura
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [AURA_powerAdd] => 0
                            [visible] => true
                            [AURA_auraEffect] => ashbringer_rockbiter_buff
                            [AURA_levelAdd] => 0
                            [AURA_power] => 0
                            [icon] => ReplaceableTextures\CommandButtons\BTNRockbiterWeapon.blp
                            [AURA_targetType] => TARGET_TYPE_TOWERS
                            [long_explain] => Increases the attack dps of towers in |cffFFFF80200|r range by |cffFFFF80150|r and causes their attacks to ignore |cffFFFF8015%|r of enemy armor.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+6|r dps|n|cffFFFF80+0.6%|r armor ignored
                            [AURA_targetSelf] => true
                            [name] => Rockbiter Aura
                            [AURA_level] => 0
                            [short_explain] => Increases the attack dps of nearby towers and causes their attacks to ignore a portion of enemy armor.
                            [AURA_auraRange] => 200
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Binf
                    [oeValues] => Array
                        (
                            [Targetattach] => Array
                                (
                                )

                            [Buffubertip] => Increased attack dps and attacks ignore a portion of enemy armor.
                            [TargetArt] => Array
                                (
                                )

                            [Bufftip] => Rockbiter Aura
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNRockbiterWeapon.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)