Magic Hammer v1
150
lvl: 2

ID:

50

Author:

F12ight

Rarity:

rare

Status:

Approved

Description:

The magical hammer radiates power.

Latest Upload Comment:

Restored from 1.10
Magic Weapon
Every 5th spell is a critical hit.
Download

Toggle Triggers

On Item Pickup

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

On Spell Cast

goldcost: 150
function onSpellCast takes Item itm returns nothing
    set itm.userInt = itm.userInt +1
    if itm.userInt >= 5 then
        call itm.getCarrier().addSpellCrit()
        set itm.userInt = 0
    endif
endfunction