Cursed Grounds v1
750
ID:
564
Family ID:
Author:
drol
Rarity:
rare
Element:
darkness
Attack Type:
Decay
Attack Range:
775
Attack CD:
1
Damage:
280-324
Abil. Factor:
0.6
Status:
Approved

Description:

Ripped open by a savage curse, this rock formation sprays spells on people not careful enough to stay away.

Latest Upload Comment:

Restored from 1.10
Specials:
Bounce attack:
   4 targets
   -30% damage per bounce
Cursed Attack
This tower has a 25% chance on damage to deal 200 additional spell damage and weaken the target for 4 seconds, reducing its movement speed by 20% and make it suffer 10% more damage from spells.

Level Bonus:
+1% chance
+10 spell damage
+0.1 sec slow duration
Mortal Coil
Grants 10% bonus damage against human, orc and nature creeps to all towers within 350 range.

Level Bonus:
+0.4% damage
Download

Toggle Triggers

Header

  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

On Damage

ONDAMAGE_chance: .25 ONDAMAGE_chanceLevelAdd: 0.01
function onDamage takes Tower tower returns nothing
    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
    
endfunction

Tower Aura

AURA_powerAdd: 2 AURA_auraEffect: drol_mortalAura AURA_levelAdd: 2 AURA_power: 0 AURA_targetType: TARGET_TYPE_TOWERS AURA_targetSelf: true AURA_level: 0 AURA_auraRange: 350