# Triggering Vital Spent

Grammar — Triggering vital spent
FlagsNative | Function

Returns — fixed

native fixed EventUnitSpentVitalAmount();

# Supported triggers

Category: Unit / Combat

# Examples

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:1654


    lv_u = EventUnit();
    lv_mana = EventUnitSpentVitalAmount();
    UnitBehaviorAdd(lv_u, libGAwX_gv_manaFlareManaTokenLink, lv_u, 1);
    UnitSetAttributePoint(lv_u, libGAwX_gv_manaFlareManaTokenLink, true, (FixedToInt(lv_mana) + UnitGetAttributePoint(lv_u, libGAwX_gv_manaFlareManaTokenLink, true)));