Optimist's Preserved Face v1
650
lvl: 24

ID:

202

Author:

cedi

Rarity:

rare

Status:

Approved

Description:

The thing above my fireplace? Ye, that was my first optimist.

Latest Upload Comment:

Restored from 1.10
Optimist Hunting Season
The carrier of this item's damage is modified by the amount of hp the creep has left. The range goes from +75% damage when the creep has full hp to -50% damage when the creep has no hp left.
Download

Toggle Triggers

On Damage

ONDAMAGE_chance: 1.0 goldcost: 650 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Item itm returns nothing
    local unit u = Event.getTarget().getUnit()
    local real r = GetUnitState( u, UNIT_STATE_LIFE ) / GetUnitState( u, UNIT_STATE_MAX_LIFE )
    set Event.damage = Event.damage * ( 1.75 - ( 1.25 * ( 1 - r ) ) )
    set u = null
endfunction