Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [targCount1] => 4
            [Farea1] => 500
            [auto] => Array
                (
                )

            [Art] => ReplaceableTextures\CommandButtons\BTNDoom.blp
            [damageLoss1] => 0.3
            [dmgplus1] => 279
            [bldtm] => 1
            [goldcost] => 750
            [sides1] => 45
            [acquire] => 775
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Cursed Grounds
            [red] => 80
            [weapTp1] => mbounce
            [file] => Doodads\Cinematic\Outland_FloatingChunks\Outland_FloatingChunks1.mdl
            [uberSplat] => OSMA
            [Missileart] => Abilities\Weapons\ZigguratMissile\ZigguratMissile.mdl
            [Missilespeed] => 1600
            [dice1] => 1
            [RngBuff1] => 250
            [green] => 80
            [modelScale] => 0.2
            [rangeN1] => 775
            [atkType1] => hero
            [cool1] => 1
            [Ubertip] => Ripped open by a savage curse, this rock formation sprays spells on people not careful enough to stay away.
            [blue] => 80
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffCCFF00Bounce attack:|n   |cffFFFF004|r targets|n   |cffFFFF00-30%|r damage per bounce
            [abil_factor] => 0.6
            [author] => drol
            [alpha] => 255
            [authorDisplay] => |cffcc6600drol|r
            [version] => 1.0
            [element] => darkness
            [rarity] => rare
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 6.88608
                    [y] => -1.21818
                    [z] => 134.4
                    [scale] => 0.75
                    [rot] => 4.71239
                    [file] => Doodads\Cinematic\RunesOfGuldan\RunesOfGuldan0.mdl
                    [red] => 80
                    [green] => 80
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => 21.5641
                    [y] => -16.2408
                    [z] => 0
                    [scale] => 0.09
                    [rot] => 5.63741
                    [file] => Doodads\Cinematic\Outland_FloatingChunks\Outland_FloatingChunks0.mdl
                    [red] => 80
                    [green] => 80
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 24.4191
                    [y] => 19.4448
                    [z] => 0
                    [scale] => 0.225
                    [rot] => 3.49066
                    [file] => Doodads\Outland\Rocks\Outland_MagmaRock\Outland_MagmaRock4.mdl
                    [red] => 80
                    [green] => 80
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => -25.1652
                    [y] => 18.5063
                    [z] => 0
                    [scale] => 0.225
                    [rot] => 1.11701
                    [file] => Doodads\Outland\Rocks\Outland_MagmaRock\Outland_MagmaRock4.mdl
                    [red] => 80
                    [green] => 80
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 4.46448
                    [y] => -15.3486
                    [z] => 0
                    [scale] => 0.225
                    [rot] => 1.5708
                    [file] => Doodads\Outland\Rocks\Outland_MagmaRock\Outland_MagmaRock4.mdl
                    [red] => 80
                    [green] => 80
                    [blue] => 80
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals 
    //@export
    BuffType drol_slow
    //@export
    BuffType drol_mortalAura
    
  endglobals
  
//The init function
private function init takes nothing returns nothing

    local Modifier slow = Modifier.create()
    local Modifier m = Modifier.create()
    
    call slow.addModification(MOD_MOVESPEED,0,-0.001)
    call slow.addModification(MOD_SPELL_DAMAGE_RECEIVED, 0, 0.0005)
    set drol_slow = BuffType.create(0,0,false) 
    call drol_slow.setBuffIcon('@@0@@')
    call drol_slow.setBuffModifier(slow) 
    call drol_slow.setStackingGroup("drol_slow1") 
    
    set drol_mortalAura = BuffType.createAuraEffectType(true)  
    call m.addModification(MOD_DMG_TO_HUMANOID,0.1,0.002)
    call m.addModification(MOD_DMG_TO_ORC,0.1,0.002) 
    call m.addModification(MOD_DMG_TO_NATURE,0.1,0.002) 
    call drol_mortalAura.setBuffModifier(m)  
    call drol_mortalAura.setStackingGroup("drol_mortalAura")  
    call drol_mortalAura.setBuffIcon('@@1@@')
    
endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Damage
                    [code] => local Unit creep = Event.getTarget()
    local integer lvl = tower.getLevel()
    
    if creep.isImmune() == false then
        call tower.doSpellDamage(creep,200*(1+lvl*0.05),tower.calcSpellCritNoBonus())
        call drol_slow.applyCustomTimed(tower,creep,R2I(0.2*1000),4+lvl*0.1)
        call SFXOnUnit("Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl",creep.getUnit(),"origin")
    endif
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => .25
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNBoneChimes.blp
                            [name] => Cursed Attack
                            [short_explain] => Chance on damage to slow the target and deal additional spell damage, target also receives increased spell damage.
                            [ONDAMAGE_chanceLevelAdd] => 0.01
                            [long_explain] => This tower has a |cffFFFF8025%|r chance on damage to deal |cffFFFF80200|r additional spell damage and weaken the target for |cffFFFF804|r seconds, reducing its movement speed by |cffFFFF8020%|r and make it suffer |cffFFFF8010%|r more damage from spells.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1%|r chance|n|cffFFFF80+10|r spell damage|n|cffFFFF80+0.1|r sec slow duration
                        )

                )

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

                    [values] => Array
                        (
                            [AURA_powerAdd] => 2
                            [visible] => true
                            [AURA_auraEffect] => drol_mortalAura
                            [AURA_levelAdd] => 2
                            [AURA_power] => 0
                            [icon] => ReplaceableTextures\CommandButtons\BTNCloakOfFlames.blp
                            [AURA_targetType] => TARGET_TYPE_TOWERS
                            [long_explain] => Grants |cffFFFF8010%|r bonus damage against human, orc and nature creeps to all towers within |cffFFFF80350|r range.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r damage
                            [AURA_targetSelf] => true
                            [name] => Mortal Coil
                            [AURA_level] => 0
                            [short_explain] => Grants bonus damage against human, orc and nature creeps to all towers around the tower.
                            [AURA_auraRange] => 350
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Bcri
                    [oeValues] => Array
                        (
                            [Targetattach] => overhead
                            [EditorName] => Weaken
                            [Buffubertip] => This unit is in weakened; its movement speed is reduced and it is suffering increased spell damage.
                            [TargetArt] => Abilities\Spells\Undead\Curse\CurseTarget.mdl
                            [Bufftip] => Weaken
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNBoneChimes.blp
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => Bcri
                    [oeValues] => Array
                        (
                            [EditorName] => Mortal Coil
                            [Buffubertip] => This unit is under the effects of Mortal Coil; it deals increased damage to human orc and nature creeps.
                            [TargetArt] => Array
                                (
                                )

                            [Bufftip] => Mortal Coil
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNCloakOfFlames.blp
                        )

                )

        )

    [units] => Array
        (
        )

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

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

        )

)