Sleeve of Rage v1 2000
lvl: 60
|
ID: 42
Author: SirCoqaLot.
Rarity: unique
Status: Approved
|
Ancient Rage
On attack this tower will enrage for 1.5 seconds gaining 0.5% increased attackspeed 1% attack damage and 0.25% spell damage. This effect stacks up to 120 times. |
Download
Toggle Triggers Header
goldcost: 0
globals
BuffType sir_sleeve_buff
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_ATTACKSPEED,0,0.005)
call m.addModification(MOD_SPELL_DAMAGE_DEALT,0,0.0025)
call m.addModification(MOD_DAMAGE_ADD_PERC,0,0.01)
set sir_sleeve_buff = BuffType.create(0,0,true)
call sir_sleeve_buff.setBuffIcon('@@0@@')
call sir_sleeve_buff.setBuffModifier(m)
call sir_sleeve_buff.setStackingGroup("sir_sleeve_group")
endfunction
On Attack
goldcost: 2000
ONATTACK_chance: 1.0
ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Item itm returns nothing
local Tower tower = itm.getCarrier()
local Buff b = tower.getBuffOfGroup("sir_sleeve_group")
local integer level = b.getLevel()
if level < 120 then
call sir_sleeve_buff.applyAdvanced(tower,tower,1+level,level,1.5)
else
call b.refreshDuration()
endif
endfunction
|
Description:
Latest Upload Comment: