Soul Extractor v2
50
lvl: 0

ID:

268

Author:

Boekie

Rarity:

unique

Status:

Approved

Description:

This item extracts souls from dead enemies and uses them to stun enemies.

Latest Upload Comment:

Improved
Stunning Souls
Gains 2 charges on kill. Spends 1 charge on damage to stun for 1.5 seconds.
Download

Toggle Triggers

On Damage

ONDAMAGE_chance: 1.0 ONDAMAGE_chanceLevelAdd: 0.0 goldcost: 50
function onDamage takes Item itm returns nothing
            
    local Unit target = Event.getTarget() 
    if itm.userInt > 0 then 
        call cb_stun.applyOnlyTimed(itm.getCarrier(),target,1.5) 
        set itm.userInt = itm.userInt -1 
        call itm.setCharges(itm.userInt)
    endif
        
endfunction

On Item Pickup

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

On Kill

goldcost: 0
function onKill takes Item itm returns nothing
            
    set itm.userInt = itm.userInt +2
    call itm.setCharges(itm.userInt)
        
endfunction