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

            [Art] => ReplaceableTextures\CommandButtons\BTNAcidBomb.blp
            [dmgplus1] => 1113
            [bldtm] => 1
            [goldcost] => 1050
            [unitSound] => SpawningGrounds
            [sides1] => 1
            [Missilearc] => 0.2
            [acquire] => 1000
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Chemical Plant
            [red] => 205
            [weapTp1] => missile
            [file] => .mdl
            [MissileHoming] => 1
            [uberSplat] => YTDF
            [Missilespeed] => 1400
            [Missileart] => war3mapImported\SludgeMissileLime.mdl
            [dice1] => 1
            [RngBuff1] => 250
            [green] => 205
            [modelScale] => 0.1
            [rangeN1] => 1000
            [atkType1] => hero
            [cool1] => 3
            [Ubertip] => The environment? That's cutting into our margins!
            [scaleBull] => 0
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffFFFF00+25% |rdmg to nature (|cffFFFF00+2%|r/lvl)
            [abil_factor] => 0.3
            [author] => Ashbringer
            [alpha] => 255
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [element] => iron
            [rarity] => rare
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.109421
                    [y] => -0.017804
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 1.57022
                    [file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 95
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => -0.0408539
                    [y] => 1.3839
                    [z] => 6.4
                    [scale] => 0.84
                    [rot] => 6.16057
                    [file] => Abilities\Spells\NightElf\MoonWell\MoonWellTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 1
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => 0.0553974
                    [y] => -42.0316
                    [z] => -6.4
                    [scale] => 0.32
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 95
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => -41.2974
                    [y] => 0.0832754
                    [z] => -6.4
                    [scale] => 0.32
                    [rot] => 3.15452
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 95
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => -29.1848
                    [y] => -29.6445
                    [z] => -6.4
                    [scale] => 0.32
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 95
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => 29.3913
                    [y] => -29.8246
                    [z] => -6.4
                    [scale] => 0.32
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 95
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => 41.1815
                    [y] => -0.275199
                    [z] => -6.4
                    [scale] => 0.32
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 95
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => 29.2521
                    [y] => 29.2255
                    [z] => -6.4
                    [scale] => 0.32
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 95
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => -29.3314
                    [y] => 29.4438
                    [z] => -6.4
                    [scale] => 0.32
                    [rot] => 2.3562
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 95
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => -0.0951763
                    [y] => 41.4431
                    [z] => -6.4
                    [scale] => 0.32
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 95
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => -19.8959
                    [y] => -48.937
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 4.08052
                    [file] => Doodads\Dungeon\Props\SewerVent\SewerVent2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => 20.0338
                    [y] => -46.363
                    [z] => -6.4
                    [scale] => 0.3
                    [rot] => 1.99528
                    [file] => Doodads\Dungeon\Props\SewerVent\SewerVent1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => 45.3007
                    [y] => -18.6484
                    [z] => -6.4
                    [scale] => 0.3
                    [rot] => 2.85449
                    [file] => Doodads\Dungeon\Props\SewerVent\SewerVent1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => -46.0044
                    [y] => -19.3318
                    [z] => -6.4
                    [scale] => 0.3
                    [rot] => 0.376168
                    [file] => Doodads\Dungeon\Props\SewerVent\SewerVent1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => 39.0853
                    [y] => -36.1538
                    [z] => -12.8
                    [scale] => 0.25
                    [rot] => 5.49779
                    [file] => Doodads\Dungeon\Props\SewerWallpipes\SewerWallpipes1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -6
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => -0.871664
                    [y] => 0.60135
                    [z] => 6.4
                    [scale] => 1.2
                    [rot] => 1.91986
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 155
                    [green] => 255
                    [blue] => 1
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => -47.9795
                    [y] => 17.4766
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 3.3894
                    [file] => Doodads\Dungeon\Props\SewerVent\SewerVent2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => -14.6679
                    [y] => 43.5843
                    [z] => 25.6
                    [scale] => 0.35
                    [rot] => 5.51524
                    [file] => Doodads\LordaeronSummer\Props\SmokeSmudge\SmokeSmudge2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [18] => Array
                (
                    [x] => -43.9848
                    [y] => 13.9419
                    [z] => 19.2
                    [scale] => 0.3
                    [rot] => 3.92699
                    [file] => Doodads\Dungeon\Props\SewerWallpipes\SewerWallpipes0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -4.71
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [19] => Array
                (
                    [x] => 17.3148
                    [y] => 8.26438
                    [z] => 0
                    [scale] => 0.35
                    [rot] => 3.50369
                    [file] => Doodads\Dungeon\Props\SewerWallpipes\SewerWallpipes0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -4.71
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [20] => Array
                (
                    [x] => 19.21
                    [y] => 40.1199
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 0.931241
                    [file] => Doodads\Dungeon\Props\SewerVent\SewerVent1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [21] => Array
                (
                    [x] => -6.42728
                    [y] => 1.22379
                    [z] => 19.2
                    [scale] => 0.4
                    [rot] => 3.92699
                    [file] => Doodads\Dungeon\Props\SewerVent\SewerVent1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [22] => Array
                (
                    [x] => 5.23272
                    [y] => -1.45134
                    [z] => 19.2
                    [scale] => 0.4
                    [rot] => 5.49779
                    [file] => Doodads\Dungeon\Props\SewerVent\SewerVent1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_NATURE
                    [base] => 0.25
                    [add] => 0.02
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        //@export
        BuffType ashbringer_pollution_buff
    endglobals
    
    function ashbringer_pollution_tick takes Buff b returns nothing
        local Tower tower = b.getCaster()
        local Unit target = b.getBuffedUnit()
        local real damage = tower.getCurrentAttackDamageWithBonus() * (tower.userReal + (tower.getLevel() * tower.userReal2))
        
        set damage = damage + (GetWidgetLife(target.getUnit()) * 0.01)
        
        if target.getCategory() == CATEGORY_NATURE then
            set damage = damage * 2
        endif
        
        call tower.doAttackDamage(target, damage, 1)
    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_pollution_buff = BuffType.createAuraEffectType(false)
        call ashbringer_pollution_buff.setBuffIcon('@@0@@')
        call ashbringer_pollution_buff.setBuffModifier(mod)
        call ashbringer_pollution_buff.addPeriodicEvent(ashbringer_pollution_tick, 1)
    endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

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

                    [values] => Array
                        (
                            [AURA_powerAdd] => 1
                            [visible] => true
                            [AURA_auraEffect] => ashbringer_pollution_buff
                            [AURA_levelAdd] => 1
                            [AURA_power] => 0
                            [icon] => ReplaceableTextures\CommandButtons\BTNHealingSpray.blp
                            [AURA_targetType] => TARGET_TYPE_CREEPS
                            [long_explain] => Enemies in |cffFFFF801000|r range take |cffFFFF8010%|r of attack damage plus |cffFFFF801%|r of their current life as |cff808000Decay|r damage every second. Damage is doubled vs Nature creeps. Cannot crit.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r attack damage
                            [AURA_targetSelf] => false
                            [name] => Pollution
                            [AURA_level] => 0
                            [short_explain] => Enemies in |cffFFFF801000|r range take |cff808000Decay|r damage every second based on current life. Damage is doubled vs Nature creeps. Cannot crit.
                            [AURA_auraRange] => 1000
                        )

                )

            [2] => Array
                (
                    [name] => On Tower Creation
                    [code] => set tower.userReal = S2R("pollution_damage_base")
    set tower.userReal2 = S2R("pollution_damage_pl")
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Binf
                    [oeValues] => Array
                        (
                            [Targetattach] => chest
                            [Buffubertip] => Taking Decay damage per second.
                            [TargetArt] => Units\Undead\PlagueCloud\PlagueCloudtarget.mdl
                            [Bufftip] => Pollution
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNHealingSpray.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => BuffType
                    [name] => ashbringer_pollution_buff
                )

        )

    [lightning] => Array
        (
        )

)