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

            [targs1] => Array
                (
                )

            [goldcost] => 2800
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 30000
            [moveHeight] => 20
            [file] => Doodads\Northrend\Structures\NorthrendCrypt\NorthrendCrypt.mdl
            [modelScale] => 0.3
            [atkType1] => hero
            [weapTp1] => missile
            [acquire] => 775
            [rangeN1] => 775
            [upgrades] => Array
                (
                )

            [cool1] => 3
            [Ubertip] => Advanced tower that has a chance to reduce target's armor and make it suffer from immense pain. The Vault's presence frightens nearby units that they loose their defense strategies and attacked units will suffer more spell damage.
            [abilList] => Array
                (
                )

            [Name] => Soul Vault
            [Missileart] => Abilities\Spells\Items\AIso\AIsoTarget.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNUrnOfKelThuzad.blp
            [buildingShadow] => Array
                (
                )

            [sides1] => 3001
            [uberSplat] => OSMA
            [auto] => Array
                (
                )

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

    [settings] => Array
        (
            [author] => SirCoqaLot.
            [element] => darkness
            [authorDisplay] => SirCoqaLot.
            [alpha] => 255
            [balanceTip] => Array
                (
                )

            [rarity] => unique
            [version] => 1.0
            [abil_factor] => 0.6
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 30.1228
                    [y] => 9.70525
                    [z] => 12.8
                    [scale] => 0.7
                    [rot] => 3.47478
                    [file] => Doodads\Ashenvale\Props\ScorchedRemains\ScorchedRemains1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                )

            [1] => Array
                (
                    [x] => -5.27658
                    [y] => -54.5683
                    [z] => 6.4
                    [scale] => 0.65
                    [rot] => 5.06431
                    [file] => Doodads\Ashenvale\Props\ScorchedRemains\ScorchedRemains1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                )

            [2] => Array
                (
                    [x] => -3.12115
                    [y] => 24.1031
                    [z] => 12.8
                    [scale] => 0.85
                    [rot] => 1.67537
                    [file] => Doodads\Ashenvale\Props\ScorchedRemains\ScorchedRemains1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                )

            [3] => Array
                (
                    [x] => -53.3943
                    [y] => 7.85701
                    [z] => 6.4
                    [scale] => 0.6
                    [rot] => 0.747848
                    [file] => Doodads\Ashenvale\Props\ScorchedRemains\ScorchedRemains1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                )

            [4] => Array
                (
                    [x] => -34.2849
                    [y] => -7.67543
                    [z] => 38.4
                    [scale] => 0.27
                    [rot] => 4.79966
                    [file] => Doodads\Icecrown\Props\IceTorch\IceTorch.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                )

            [5] => Array
                (
                    [x] => 4.78192
                    [y] => -34.7009
                    [z] => 44.8
                    [scale] => 0.27
                    [rot] => 4.79966
                    [file] => Doodads\Icecrown\Props\IceTorch\IceTorch.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                )

            [6] => Array
                (
                    [x] => -1.84529
                    [y] => -3.77935
                    [z] => 38.4
                    [scale] => 1
                    [rot] => 2.53073
                    [file] => Abilities\Spells\Items\AIso\BIsvTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                )

            [7] => Array
                (
                    [x] => -13.6937
                    [y] => 2.02969
                    [z] => 0
                    [scale] => 1
                    [rot] => 4.43172
                    [file] => Doodads\Barrens\Props\Barrens_Bones\Barrens_Bones3.mdl
                    [red] => 90
                    [green] => 120
                    [blue] => 120
                    [alpha] => 255
                    [pitch] => 0
                )

            [8] => Array
                (
                    [x] => 1.7449
                    [y] => 14.8388
                    [z] => 0
                    [scale] => 1
                    [rot] => 2.23294
                    [file] => Doodads\Barrens\Props\Barrens_Bones\Barrens_Bones3.mdl
                    [red] => 90
                    [green] => 120
                    [blue] => 120
                    [alpha] => 255
                    [pitch] => 0
                )

            [9] => Array
                (
                    [x] => -23.7032
                    [y] => -34.6243
                    [z] => 12.8
                    [scale] => 0.6
                    [rot] => 5.65487
                    [file] => Doodads\Ashenvale\Props\ScorchedRemains\ScorchedRemains1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                )

            [10] => Array
                (
                    [x] => 49.2801
                    [y] => 6.92622
                    [z] => 6.4
                    [scale] => 0.7
                    [rot] => 3.90804
                    [file] => Doodads\Ashenvale\Props\ScorchedRemains\ScorchedRemains1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Damage
                    [code] => local integer lvl = tower.getLevel()
      local integer devour = R2I((0.5 + lvl * 0.02)*1000)
    call sir_soul_devour.apply(tower,Event.getTarget(),devour)
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 0.125
                            [icon] => ReplaceableTextures\CommandButtons\BTNDoom.blp
                            [visible] => true
                            [name] => Soulsteal
                            [short_explain] => This tower has a small chance to lock a target unit's soul letting it suffer more spell damage.
                            [ONDAMAGE_chanceLevelAdd] => 0.001
                            [long_explain] => This tower has a |cffFFFF8012.5%|r chance to lock its target's soul. A unit without a soul will recieve |cffFFFF8050%|r more spell damage. |n|n|cffFF8000Level Bonus:|r|n +|cffFFFF800.1%|r chance|n +|cffFFFF802%|r more spell damage taken
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals

        BuffType sir_armor_aura
        BuffType sir_soul_devour
        BuffType sir_acid_skull
        Cast AcidSkull
        
    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 armor = Modifier.create()
        local Modifier devour = Modifier.create()
        local Modifier acid = Modifier.create()

        set sir_armor_aura = BuffType.createAuraEffectType(false)  // Aura
        call armor.addModification(MOD_ARMOR_PERC,0.0,-0.001)
        call sir_armor_aura.setBuffModifier(armor)    
        call sir_armor_aura.setStackingGroup("armor_reduction_aura")
        call sir_armor_aura.setBuffIcon('@@1@@')
        
        set sir_acid_skull = BuffType.create(0,0,false)  // Acid Skull
        call acid.addModification(MOD_ARMOR,0.0,-1)
        call sir_acid_skull.setBuffModifier(acid)   
        call sir_acid_skull.setStackingGroup("acid_skull")
        
        set sir_soul_devour = BuffType.create(1000,0,false)   // Devour
        call devour.addModification(MOD_SPELL_DAMAGE_RECEIVED,0.0,0.001)
        call sir_soul_devour.setBuffModifier(devour)
        call sir_soul_devour.setBuffIcon('@@2@@')
        
        set AcidSkull = Cast.create('@@0@@',"acidbomb",10.0)
        endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

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

                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNCurse.blp
                            [visible] => true
                            [AURA_auraEffect] => sir_armor_aura
                            [AURA_power] => 250
                            [AURA_level] => 250
                            [long_explain] => Unit's in |cffFFFF80775|r range have their armor reduced by |cffFFFF8025%|r. |n|n|cffFF8000Level Bonus:|r|n +|cffFFFF800.2%|r armor reduction
                            [AURA_auraRange] => 775
                            [AURA_targetType] => TARGET_TYPE_CREEPS
                            [AURA_levelAdd] => 2
                            [AURA_powerAdd] => 2
                            [name] => Vault's Presence
                            [AURA_targetSelf] => false
                            [short_explain] => This tower reduces nearby unit's armor
                        )

                )

            [3] => Array
                (
                    [name] => On Attack
                    [code] => local integer lvl = tower.getLevel()
      local Creep target = Event.getTarget()
      local Unit u
      local Iterate iterator = Iterate.overUnitsInRangeOfUnit(tower,TARGET_TYPE_CREEPS,target,225) 
    loop  
      set u = iterator.next() 
      exitwhen u == 0 
      call sir_acid_skull.applyCustomTimed(tower,u,5,4.5)
    endloop 
    
    call sir_acid_skull.applyCustomTimed(tower,target,5,4.5)
    call AcidSkull.targetCastFromCaster(tower,target,1.0+lvl*0.05,tower.calcSpellCritNoBonus())
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNAcidBomb.blp
                            [visible] => true
                            [name] => Acid Skull
                            [short_explain] => This tower has a chance on attack to throw some acid onto it's target and other units nearby.
                            [ONATTACK_chance] => 0.25
                            [ONATTACK_chanceLevelAdd] => 0.004
                            [long_explain] => This tower has a |cffFFFF8025%|r chance to throw an Acid Skull onto the target, dealing |cffFFFF801800|r damage to the main target and |cffFFFF801440|r damage to targets in |cffFFFF80225|r range and reducing their armor by |cffFFFF805|r over |cffFFFF804.5|r seconds. |n|n|cffFF8000Level Bonus:|r|n +|cffFFFF805%|r damage|n +|cffFFFF800.4%|r chance
                        )

                )

        )

    [abilities] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => ANab
                    [oeValues] => Array
                        (
                            [DataC1] => 0
                            [hero] => 0
                            [Ubertip] => Throws an Acid Filled skull onto target unit. Reducing nearby Unit's armor and doing some minor damage over time.
                            [Cool1] => 0
                            [Dur1] => 4.5
                            [DataF1] => 0.5
                            [DataE1] => 160
                            [Rng1] => 850
                            [Cost1] => 0
                            [DataD1] => 200
                            [Area1] => 225
                            [Name] => Acid Skull
                            [Art] => ReplaceableTextures\CommandButtons\BTNAcidBomb.blp
                            [levels] => 1
                            [HeroDur1] => 4.5
                            [Missilespeed] => 775
                            [BuffID1] => Array
                                (
                                )

                        )

                )

        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BHav
                    [oeValues] => Array
                        (
                            [Bufftip] => Vault's Presence
                            [Buffubertip] => This unit fears a nearby Soul Vault and has it's armor reduced.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNCurse.blp
                            [TargetArt] => Abilities\Spells\Other\HowlOfTerror\HowlTarget.mdl
                        )

                )

            [1] => Array
                (
                    [id] => @@2@@
                    [derivedFrom] => BNdo
                    [oeValues] => Array
                        (
                            [Bufftip] => Soulsteal
                            [Buffubertip] => This unit's soul has been locked in the vault and it will recieve more magic damage.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNDoom.blp
                            [TargetArt] => Abilities\Spells\Undead\DeathandDecay\DeathandDecayDamage.mdl
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)