Stunner v1 1000
lvl: 40
|
ID: 269
Author: Boekie
Rarity: rare
Status: Approved
|
Stun
When the carrier of this item damages a creep there is a 15% attackspeed adjusted chance to stun the target for 1 second. Has only a 1/3 of the normal chance to trigger on bosses! Level Bonus: +0.25% chance |
Download
Toggle Triggers On Damage
ONDAMAGE_chance: 1
goldcost: 1000
ONDAMAGE_chanceLevelAdd: 0
function onDamage takes Item itm returns nothing
local Creep target = Event.getTarget()
local integer size = target.getSize()
local Tower tower = itm.getCarrier()
local real speed = tower.getBaseAttackspeed()
if size < SIZE_BOSS then
if tower.calcChance((0.15+tower.getLevel()*0.0025) * speed ) and Event.isMainTarget() == true then
call cb_stun.applyOnlyTimed(tower,target,1)
endif
else
if tower.calcChance((0.15+tower.getLevel()* 0.0025) / 3 * speed ) and Event.isMainTarget() == true then
call cb_stun.applyOnlyTimed(tower,target,1)
endif
endif
endfunction
|
Description:
Latest Upload Comment: