Magic Conductor v1
300
lvl: 5

ID:

279

Author:

Boekie

Rarity:

unique

Status:

Approved

Description:

This item is able to transform magic powers into a speed bonus.

Latest Upload Comment:

Restored from 1.10
Conduct Magic
Whenever the carrier of this item is targeted by a spell it gains +20% attackspeed for 10 seconds.

Level Bonus:
+0.5% attackspeed
Download

Toggle Triggers

Header

goldcost: 0
    globals
    BuffType boekie_magicConductor_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.20,0.005) 
    set boekie_magicConductor_buff = BuffType.create(0.0,0.0,true) //0.0 time since I will apply it custom timed  
    call boekie_magicConductor_buff.setBuffModifier(m) 
    call boekie_magicConductor_buff.setBuffIcon('@@0@@') 
    call boekie_magicConductor_buff.setStackingGroup("boekie_magicConductor") 
    endfunction

On Spell Target

goldcost: 300
function onSpellTarget takes Item itm returns nothing
local Tower tower = itm.getCarrier() 
local integer lvl = tower.getLevel() 

call boekie_magicConductor_buff.applyCustomTimed(tower,tower,lvl,10.0) 
endfunction