Sign of Energy Infusion v1
630
lvl: 24

ID:

156

Author:

cedi

Rarity:

rare

Status:

Approved

Description:

This sign is able to infuse attacks with regeneration.

Latest Upload Comment:

Restored from 1.10
Infuse with Regeneration
Every 5th time the carrier of this item deals damage, the damage is increased by its percentual mana regeneration.
Download

Toggle Triggers

On Damage

ONDAMAGE_chance: 1.0 goldcost: 630 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Item itm returns nothing
    local Tower C = itm.getCarrier()
    local real regen = 2.0 + C.getProp_ManaRegPercBonus()
    set itm.userInt = itm.userInt + 1
    if itm.userInt >= 5 then
        set Event.damage = Event.damage * regen
        set itm.userInt = 0
        call C.getOwner().displaySmallFloatingText( I2S( R2I( Event.damage ) ), C, 255, 0, 255, 40.0 )
    endif
endfunction

On Item Creation

goldcost: 0
function onCreate takes Item itm returns nothing
    set itm.userInt = 0
endfunction