Essence of Fury v1
100
|
ID: 277
Family ID:
Author: Killamasta
Rarity: uncommon
Element: darkness
Attack Type: Decay
Attack Range: 800
Attack CD: 2
Damage: 16-16
Abil. Factor: 0.1
Status: Approved
|
Specials:
Bounce attack:
2 targets
-0% damage per bounce
Poisoned Heart
This tower destroys a piece of the creep's heart on damage. The affected creep takes 25 spelldamage every second for 6 seconds. Level Bonus: +1 poison damage +0.1 seconds poison duration |
Download
Toggle Triggers Header globals
//@export
BuffType Poisoned_heart // this is used to declare the buff
endglobals
function dealDamage takes Buff b returns nothing // we need this function to deal damage to the buffed creep
local Unit creep = b.getBuffedUnit() // this method is used to get the buffed creep
local Tower tower = b.getCaster() // this method is used to get the caster of the buff
call tower.doSpellDamage(creep,b.userReal,tower.calcSpellCritNoBonus()) // replace yy with your own value
endfunction
//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
set Poisoned_heart=BuffType.create(9,0.5,false) //replace zz with your own value
call Poisoned_heart.setBuffIcon('@@0@@') // this is the id of the buff you have to create in the object editor
call Poisoned_heart.addPeriodicEvent(EventHandler.dealDamage,1) // with this we add a periodic event to the buff
endfunction
On Damage
ONDAMAGE_chance: 1.0
ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local Unit creep = Event.getTarget()
set Poisoned_heart.applyCustomTimed(tower,creep,tower.getLevel(),6+tower.getLevel()*.1).userReal = 25. + 1 * tower.getLevel()
endfunction
|
Description:
Latest Upload Comment: