Mystical Shell v1 150
lvl: 5
|
ID: 125
Author: drol
Rarity: uncommon
Status: Approved
|
Resonance
Grants the carrier a 10% attackspeed adjusted chance to debuff the attacked target, increasing all spelldamage dealt to it by 15% for 5 seconds. |
Download
Toggle Triggers Header
goldcost: 0
globals
BuffType drol_spellDmgRecieved
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_SPELL_DAMAGE_RECEIVED,0.15,0)
set drol_spellDmgRecieved = BuffType.create(5,0,false)
call drol_spellDmgRecieved.setBuffIcon('@@0@@')
call drol_spellDmgRecieved.setBuffModifier(m)
endfunction
On Attack
goldcost: 150
ONATTACK_chance: 1.0
ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Item itm returns nothing
local Tower tower = itm.getCarrier()
if tower.calcChance(0.10 * tower.getBaseAttackspeed()) then
call drol_spellDmgRecieved.apply(tower, Event.getTarget(),tower.getLevel())
endif
endfunction
|
Description:
Latest Upload Comment: