Spiderling v1 50
lvl: 0
|
ID: 105
Author: Boekie
Rarity: rare
Status: Approved
|
Spiderling Poison
When the carrier of this item attacks there is a 25% attackspeed adjusted chance that the attacked creep is slowed by 5% for 4 seconds. |
Download
Toggle Triggers Header
goldcost: 0
globals
BuffType boekie_spiderling_slow
endglobals
//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
local Modifier m = Modifier.create()
call m.addModification(MOD_MOVESPEED,-0.05,0)
set boekie_spiderling_slow = BuffType.create(4,0,false)
call boekie_spiderling_slow.setBuffIcon('@@0@@')
call boekie_spiderling_slow.setBuffModifier(m)
call boekie_spiderling_slow.setStackingGroup("boekieSpiderlingSlow")
endfunction
On Attack
goldcost: 50
ONATTACK_chance: 1.0
ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Item itm returns nothing
local Tower tower = itm.getCarrier()
local real speed = tower.getBaseAttackspeed()
if tower.calcChance(0.25*speed) == true then
call boekie_spiderling_slow.apply(tower,Event.getTarget(),1)
endif
endfunction
|
Description:
Latest Upload Comment: