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

            [targs1] => Array
                (
                )

            [goldcost] => 200
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1500
            [file] => Doodads\Dungeon\Props\SewerVent\SewerVent0.mdl
            [modelScale] => 0.8
            [atkType1] => chaos
            [weapTp1] => missile
            [acquire] => 800
            [rangeN1] => 800
            [upgrades] => Array
                (
                )

            [cool1] => 1.2
            [Ubertip] => A connection to the canalization. Toxic vapors are leaking out.
            [abilList] => Array
                (
                )

            [Name] => Sewer Connection
            [Missileart] => units\undead\PlagueCloud\PlagueCloud.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNHealingSpray.blp
            [buildingShadow] => Array
                (
                )

            [turnRate] => 3
            [sides1] => 1
            [auto] => Array
                (
                )

            [dmgplus1] => 162
            [bldtm] => 1
        )

    [settings] => Array
        (
            [mail] => möp
            [author] => D1000
            [element] => iron
            [authorDisplay] => |cffB4FC0AD1000|r
            [balanceTip] => |cffFFFF80-60% |rdmg to undead|n|cffFFFF80+60% |rdmg to nature (|cffFFFF80+2%|r/lvl)
            [rarity] => uncommon
            [comment] => What should I say? It´s just a tower.
            [version] => 1.0
            [abil_factor] => 0.624
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.189881
                    [y] => 0.402127
                    [z] => 25.6
                    [scale] => 0.4
                    [rot] => 0
                    [file] => units\undead\PlagueCloud\PlagueCloud.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 140
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_UNDEAD
                    [base] => -0.6
                    [add] => 0
                )

            [1] => Array
                (
                    [id] => MOD_DMG_TO_NATURE
                    [base] => 0.6
                    [add] => 0.02
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        //@export
        BuffType D1000_Toxic_vapor
    endglobals
    
    function D1000_Toxic_Damage takes Buff b returns nothing 
        call b.getCaster().doSpellDamage(b.getBuffedUnit(),b.getLevel()/10,b.getCaster().calcSpellCritNoBonus())  
    endfunction 
    
    private function init takes nothing returns nothing
        set D1000_Toxic_vapor = BuffType.create(10,0,false)
        call D1000_Toxic_vapor.setBuffIcon('@@0@@')
        call D1000_Toxic_vapor.addPeriodicEvent(EventHandler.D1000_Toxic_Damage,1)
	endfunction
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNBanish.blp
                            [visible] => true
                            [name] => Toxic Vapor
                            [short_explain] => Damage over time
                            [long_explain] => Toxic vapor from the underground causes |cffFFFF8030%|r of the tower targets to suffer damage over |cffFFFF8010|r seconds. Deals  |cffFFFF80200|r damage per second. |n|n|cffFF8000Level Bonus:|r|n+|cffFFFF808|r damage per second.
                        )

                )

            [1] => Array
                (
                    [name] => On Attack
                    [code] => call D1000_Toxic_vapor.apply(tower,Event.getTarget(),R2I(tower.getLevel()*80+2000))
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [ONATTACK_chance] => 0.30
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Bufftip] => Toxic vapor
                            [Targetattach] => head
                            [Buffubertip] => This unit is contaminated by toxic vapors; it suffers damage every second.
                            [Targetattachcount] => 1
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNBanish.blp
                            [TargetArt] => units\undead\PlagueCloud\PlagueCloud.mdl
                            [Spelldetail] => 1
                        )

                )

        )

    [units] => Array
        (
        )

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

        )

)