Lich Mask v1
450
lvl: 16

ID:

213

Author:

cedi

Rarity:

rare

Status:

Approved

Description:

They make great party favor! Although they do melt your face off.

Latest Upload Comment:

Restored from 1.10
Breath of Decay
On attack, this item can change the carrier's attacktype to Decay at the cost of 100 charges. Regenerates 50 charges per attack. This effect is not visible on the tower itself.

Level Bonus:
+1 charge regenerated
Download

Toggle Triggers

On Attack

goldcost: 0 ONATTACK_chance: 1.0 ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Item itm returns nothing
    set itm.userReal = itm.userReal + 50.0 + 1.0 * itm.getCarrier().getLevel()
    call itm.setCharges( R2I( itm.userReal ) )
endfunction

On Damage

ONDAMAGE_chance: 1.0 goldcost: 450 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Item itm returns nothing
    local Tower T = itm.getCarrier()
    local Creep C = Event.getTarget()   //Remove original dmg bonus                                 |Add
    
    if itm.userReal >= 100.0 then
        set Event.damage = Event.damage     / T.getAttackType().getDamageAgainst( C.getArmorType() )    * AttackType.DECAY.getDamageAgainst( C.getArmorType() )
        call SFXOnUnit( "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl", C.getUnit(), "chest" )
        set itm.userReal = itm.userReal - 100.0
        call itm.setCharges( R2I( itm.userReal ) )
    endif
endfunction

On Item Pickup

goldcost: 0
function onPickup  takes Item itm returns nothing
    set itm.userReal = 0.0
    call itm.setCharges( 0 )
endfunction