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

            [targs1] => Array
                (
                )

            [goldcost] => 950
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1300
            [moveHeight] => 20
            [file] => Doodads\Dungeon\Props\SewerVent\SewerVent0.mdl
            [modelScale] => 0.5
            [atkType1] => siege
            [weapTp1] => missile
            [acquire] => 900
            [rangeN1] => 900
            [upgrades] => Array
                (
                )

            [cool1] => 2.6
            [Ubertip] => Can fire different bombs for a great versatility.
            [green] => 100
            [abilList] => Array
                (
                )

            [launchZ] => 50
            [Missileart] => Abilities\Weapons\BoatMissile\BoatMissile.mdl
            [Name] => Bomb Turret
            [Art] => ReplaceableTextures\CommandButtons\BTNFragmentationBombs.blp
            [red] => 100
            [buildingShadow] => Array
                (
                )

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

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

    [settings] => Array
        (
            [author] => DaveMatthews
            [element] => iron
            [authorDisplay] => DaveMatthews
            [alpha] => 255
            [balanceTip] => Array
                (
                )

            [rarity] => rare
            [version] => 1.0
            [abil_factor] => 0.8
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 6.27968
                    [y] => -4.2787
                    [z] => 0
                    [scale] => 0.45
                    [rot] => 5.32326
                    [file] => buildings\other\NerubianZiggurat\NerubianZiggurat.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => 50.5173
                    [y] => -52.2724
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 4.71239
                    [file] => Units\Critters\Marine\Marine.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => -46.8972
                    [y] => -54.3864
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 4.71239
                    [file] => Units\Critters\Marine\Marine.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 4.87836
                    [y] => -2.77388
                    [z] => 38.4
                    [scale] => 0.225
                    [rot] => 5.32326
                    [file] => buildings\other\NerubianZiggurat\NerubianZiggurat.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 36.2581
                    [y] => 49.1679
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 1.23918
                    [file] => Units\Other\TNTBarrel\TNTBarrel.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => 53.2953
                    [y] => 45.496
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 1.5708
                    [file] => Units\Other\TNTBarrel\TNTBarrel.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => 48.9422
                    [y] => 29.8011
                    [z] => 0
                    [scale] => 0.3
                    [rot] => 0.733038
                    [file] => Units\Other\TNTBarrel\TNTBarrel.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Damage
                    [code] => local integer level = tower.getLevel()
local Unit creep = Event.getTarget()
local Unit u
local Iterate it
    
    if tower.getBuffOfType(dave_concussive)!=0 then
        set it = Iterate.overUnitsInRangeOfUnit(tower,TARGET_CREEPS,creep,250)
        loop
           set u = it.next()
           exitwhen u == 0
           call dave_concussive_buff.apply(tower,u,level)
        endloop
       call Effect.createScaled("Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl", GetUnitX(creep.getUnit()), GetUnitY(creep.getUnit()), 0, 0, 1.0).setLifetime(0.2)
    elseif tower.getBuffOfType(dave_acid)!=0 then
        set it = Iterate.overUnitsInRangeOfUnit(tower,TARGET_CREEPS,creep,250)
        loop
           set u = it.next()
           exitwhen u == 0
           call dave_acid_buff.apply(tower, u, level)
        endloop
       call Effect.createScaled("Abilities\\Weapons\\ChimaeraAcidMissile\\ChimaeraAcidMissile.mdl", GetUnitX(creep.getUnit()), GetUnitY(creep.getUnit()), 0, 0, 1.3).setLifetime(0.2)
    elseif tower.getBuffOfType(dave_smoke)!=0 then
        set it = Iterate.overUnitsInRangeOfUnit(tower,TARGET_CREEPS,creep,250)
        loop
           set u = it.next()
           exitwhen u == 0
           call cb_silence.applyOnlyTimed(tower, u, 1+(0.04*level))
        endloop
       call Effect.createScaled("Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl", GetUnitX(creep.getUnit()), GetUnitY(creep.getUnit()), 0, 0, 0.8).setLifetime(0.5)
    endif
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
    //@export
    BuffType dave_concussive
    //@export
    BuffType dave_acid
    //@export
    BuffType dave_smoke
    //@export
    BuffType dave_concussive_buff
    //@export
    BuffType dave_acid_buff
    endglobals
    
    
    //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 m = Modifier.create()
    local Modifier n = Modifier.create()
    
     set dave_concussive_buff = BuffType.create(4,0,false)
     call dave_concussive_buff.setBuffModifier(m)
     call m.addModification(MOD_MOVESPEED,-0.15,-0.004)
     call dave_concussive_buff.setBuffIcon( '@@2@@' )
     
     set dave_acid_buff = BuffType.create(4,0,false)
     call dave_acid_buff.setBuffModifier(n)
     call dave_acid_buff.setBuffIcon( '@@4@@' )
     call n.addModification(MOD_ARMOR_PERC,-0.1,-0.004)
    
     set dave_concussive = BuffType.create(-1,0,true)
     call dave_concussive.setBuffIcon( '@@0@@' )
     
     set dave_acid = BuffType.create(-1,0,true)
     call dave_acid.setBuffIcon( '@@1@@' )
     
     set dave_smoke = BuffType.create(-1,0,true)
     call dave_smoke.setBuffIcon( '@@3@@' )

	endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => Autocast
                    [code] => if tower.getBuffOfType(dave_concussive)==0 then
  call dave_concussive.apply(tower, tower, tower.getLevel())
endif

if tower.getBuffOfType(dave_acid)!=0 then
  call tower.getBuffOfType(dave_acid).removeBuff()
endif
  
if tower.getBuffOfType(dave_smoke)!=0 then
  call tower.getBuffOfType(dave_smoke).removeBuff()
endif
                    [values] => Array
                        (
                            [caster_art] => 
                            [icon] => ReplaceableTextures\CommandButtons\BTNStun.blp
                            [AUTOCAST_cooldown] => 5
                            [AUTOCAST_numBuffsBeforeIdle] => 1
                            [AUTOCAST_isExtended] => false
                            [long_explain] => Equips the tower with concussive bombs. Each attack slows all the creeps in a |cffFFFF80250|r area around the target by |cffFFFF8015%|r for |cffFFFF804|r seconds. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r slow
                            [AUTOCAST_autocastType] => AC_TYPE_NOAC_IMMEDIATE
                            [AUTOCAST_manacost] => 0
                            [AUTOCAST_range] => 0
                            [AUTOCAST_buffType] => dave_concussive
                            [name] => Concussive Bombs
                            [AUTOCAST_targetSelf] => true
                            [short_explain] => Equips concussive bombs
                            [AUTOCAST_targetType] => TARGET_TYPE_TOWERS
                            [target_art] => 
                            [AUTOCAST_autoRange] => 0
                        )

                )

            [3] => Array
                (
                    [name] => Autocast
                    [code] => if tower.getBuffOfType(dave_acid)==0 then
  call dave_acid.apply(tower, tower, tower.getLevel())
endif

if tower.getBuffOfType(dave_concussive)!=0 then
  call tower.getBuffOfType(dave_concussive).removeBuff()
endif
  
if tower.getBuffOfType(dave_smoke)!=0 then
  call tower.getBuffOfType(dave_smoke).removeBuff()
endif
                    [values] => Array
                        (
                            [caster_art] => 
                            [icon] => ReplaceableTextures\CommandButtons\BTNCorrosiveBreath.blp
                            [AUTOCAST_cooldown] => 5
                            [AUTOCAST_numBuffsBeforeIdle] => 1
                            [AUTOCAST_isExtended] => false
                            [long_explain] => Equips the tower with acid bombs. Each attack reduces the armor of all the creeps in a |cffFFFF80250|r area around the target by |cffFFFF8010%|r for |cffFFFF804|r seconds. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r armor reduction
                            [AUTOCAST_autocastType] => AC_TYPE_NOAC_IMMEDIATE
                            [AUTOCAST_manacost] => 0
                            [AUTOCAST_range] => 0
                            [AUTOCAST_buffType] => dave_acid
                            [name] => Acid Bombs
                            [AUTOCAST_targetSelf] => true
                            [short_explain] => Equips acid bombs
                            [AUTOCAST_targetType] => TARGET_TYPE_TOWERS
                            [target_art] => 
                            [AUTOCAST_autoRange] => 0
                        )

                )

            [4] => Array
                (
                    [name] => Autocast
                    [code] => if tower.getBuffOfType(dave_smoke)==0 then
  call dave_smoke.apply(tower, tower, tower.getLevel())
endif

if tower.getBuffOfType(dave_acid)!=0 then
  call tower.getBuffOfType(dave_acid).removeBuff()
endif
  
if tower.getBuffOfType(dave_concussive)!=0 then
  call tower.getBuffOfType(dave_concussive).removeBuff()
endif
                    [values] => Array
                        (
                            [caster_art] => 
                            [icon] => ReplaceableTextures\CommandButtons\BTNCloudOfFog.blp
                            [AUTOCAST_cooldown] => 5
                            [AUTOCAST_numBuffsBeforeIdle] => 1
                            [AUTOCAST_isExtended] => false
                            [long_explain] => Equips the tower with smoke bombs. Each attack silences all the creeps in a |cffFFFF80250|r area around the target for |cffFFFF801|r second. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.04|r seconds duration
                            [AUTOCAST_autocastType] => AC_TYPE_NOAC_IMMEDIATE
                            [AUTOCAST_manacost] => 0
                            [AUTOCAST_range] => 0
                            [AUTOCAST_buffType] => dave_smoke
                            [name] => Smoke Bombs
                            [AUTOCAST_targetSelf] => true
                            [short_explain] => Equips smoke bombs
                            [AUTOCAST_targetType] => TARGET_TYPE_TOWERS
                            [target_art] => 
                            [AUTOCAST_autoRange] => 0
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BSTN
                    [oeValues] => Array
                        (
                            [Bufftip] => Concussive Bomb
                            [Targetattach] => Array
                                (
                                )

                            [Buffubertip] => This unit is equipped with concussive bombs.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNStun.blp
                            [TargetArt] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BSTN
                    [oeValues] => Array
                        (
                            [Bufftip] => Acid Bomb
                            [Targetattach] => Array
                                (
                                )

                            [Buffubertip] => This unit is equipped with acid bombs.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNCorrosiveBreath.blp
                            [TargetArt] => Array
                                (
                                )

                        )

                )

            [2] => Array
                (
                    [id] => @@2@@
                    [derivedFrom] => BSTN
                    [oeValues] => Array
                        (
                            [Bufftip] => Concussive Bomb
                            [Targetattach] => origin
                            [Buffubertip] => This unit is slowed.
                            [Targetattachcount] => 1
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNStun.blp
                            [TargetArt] => Abilities\Spells\Human\slow\slowtarget.mdl
                        )

                )

            [3] => Array
                (
                    [id] => @@3@@
                    [derivedFrom] => BSTN
                    [oeValues] => Array
                        (
                            [Bufftip] => Smoke Bomb
                            [Targetattach] => Array
                                (
                                )

                            [Buffubertip] => This unit is equipped with smoke bombs.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNCloudOfFog.blp
                            [TargetArt] => Array
                                (
                                )

                        )

                )

            [4] => Array
                (
                    [id] => @@4@@
                    [derivedFrom] => BSTN
                    [oeValues] => Array
                        (
                            [Bufftip] => Acid Bomb
                            [Targetattach] => chest
                            [Buffubertip] => This unit has its armor reduced.
                            [Targetattachcount] => 1
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNCorrosiveBreath.blp
                            [TargetArt] => Abilities\Spells\Other\AcidBomb\BottleImpact.mdl
                        )

                )

        )

    [units] => Array
        (
        )

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

            [1] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => BuffType
                    [name] => dave_acid
                )

            [2] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => BuffType
                    [name] => dave_smoke
                )

            [3] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => BuffType
                    [name] => dave_concussive_buff
                )

            [4] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => BuffType
                    [name] => dave_acid_buff
                )

        )

)