Tentacle Spawn v1
60
ID:
169
Family ID:
Author:
drol
Rarity:
common
Element:
darkness
Attack Type:
Physical
Attack Range:
850
Attack CD:
1.5
Damage:
65-76
Abil. Factor:
0.75
Status:
Approved

Description:

Sometimes hits its targets in a weak spot, leaving them rended.

Latest Upload Comment:

Restored from 1.10
Rend
The tentacle has a 25% chance to rend a target, making it suffer 3% increased spell damage and dealing 20 spell damage per second for 6 seconds. Does not stack.

Level Bonus:
+1% chance
+0.8 spell damage per second
Download

Toggle Triggers

Header

    globals
        //@export
        BuffType drol_tentacleDot
    endglobals
    
    function drol_tentacleDamage takes Buff b returns nothing
        if not b.getBuffedUnit().isImmune() then
            call b.getCaster().doSpellDamage(b.getBuffedUnit(), b.userReal, b.getCaster().calcSpellCritNoBonus())
            call SFXOnUnit("Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodRifleman.mdl", b.getBuffedUnit().getUnit(),"chest")
        endif
    endfunction
    
    private function init takes nothing returns nothing
        
        local Modifier m = Modifier.create()
        call m.addModification( MOD_SPELL_DAMAGE_RECEIVED, 0.02, 0.01 )
        
        set drol_tentacleDot = BuffType.create( 6., 0, false)
        call drol_tentacleDot.setBuffIcon('@@0@@')
        call drol_tentacleDot.addPeriodicEvent(EventHandler.drol_tentacleDamage,1)
        call drol_tentacleDot.setBuffModifier(m)
        
    endfunction

On Damage

ONDAMAGE_chance: 0.25 ONDAMAGE_chanceLevelAdd: 0.01
function onDamage takes Tower tower returns nothing
    set drol_tentacleDot.apply(tower, Event.getTarget(), 1).userReal = 20. + 0.8 * tower.getLevel()
endfunction