Wand of Mana Zap v1 700
lvl: 27
|
ID: 166
Author: drol
Rarity: rare
Status: Approved
|
Mana Zap
The carrier's attacks zap away 8 mana from their target. Amount zapped is adjusted by attack speed and range. Level Bonus: +0.6 mana |
Download
Toggle Triggers On Damage
ONDAMAGE_chance: 1.0
goldcost: 700
ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Item itm returns nothing
local Tower tower = itm.getCarrier()
local Creep creep = Event.getTarget()
local Lightning l
if Event.isMainTarget() then
if creep.subtractMana((8 + 0.6 * tower.getLevel() * tower.getBaseAttackspeed()) * (55 / Pow(tower.getRange(), 0.6)), true) > 0. then
set l = Lightning.createFromUnitToUnit("MFPB",tower,creep)
call l.setColor(100,0,255,255)
call l.setLifetime(0.1)
call SFXOnUnit("Abilities\\Spells\\Human\\Feedback\\ArcaneTowerAttack.mdl", creep.getUnit(), "origin")
endif
endif
endfunction
|
Description:
Latest Upload Comment: