# Unit is Healed
Grammar — u is healed of vitalType (from healEffect effects)
Flags —Native
|Event
This event fires when a unit is healed through effects. Use “Healing Unit” to get the unit casting the heal. Use “Healing Player” to get the owner of the unit that is dealing damage. Use “Triggering Heal Given” to get the amount healed. Use “Triggering Heal Vital Type” to get the vital type that was healed. Use “Triggering Player” to get the owner of the unit that is healed. Use “Triggering Unit” to get the unit that is healed.
# Arguments
unitref
[ unit ] — Unitint
[ preset::UnitVitalType ] — Vital Typestring
[ gamelink::Effect ] — Heal Effect
Returns — void
native void TriggerAddEventUnitHealed(
trigger inTrigger,
unitref inUnit,
int inHealType,
string inEffect,
);
# Related
Category: Unit / Combat
- [F] —
fixed
— Get Unit Damage Dealt Time — ( UnitGetDamageDealtTime ) - [F] —
fixed
— Get Unit Damage Taken Time — ( UnitGetDamageTakenTime ) - [F] —
string
[ gamelink::Weapon ] — Weapon Used In Attack — ( EventUnitGetWeapon ) - [F] —
unit
— Item Used In Attack — ( EventUnitGetItem ) - [F] —
string
[ gamelink::Item ] — Item Type Used In Attack — ( EventUnitGetItemType ) - [F] —
void
— Unit Dies — ( TriggerAddEventUnitDied ) - [F] —
unit
— Killing Unit — ( libNtve_gf_KillingUnit ) - [F] —
int
— Killing Player — ( libNtve_gf_KillingPlayer ) - [F] —
bool
— Triggering Death Type Check — ( EventUnitDamageDeathCheck ) - [F] —
void
— Unit Is Being Removed — ( TriggerAddEventUnitRemoved ) - [F] —
void
— Unit Starts Attacking (Deprecated) — ( TriggerAddEventUnitStartedAttack ) - [F] —
void
— Unit Starts Attacking — ( TriggerAddEventUnitStartedAttack2 ) - [F] —
void
— Unit Is Attacked (Deprecated) — ( TriggerAddEventUnitAttacked ) - [F] —
void
— Unit Is Attacked — ( TriggerAddEventUnitAttacked2 ) - [F] —
unit
— Attacking Unit — ( EventUnitTarget ) - [F] —
void
— Unit Absorbs Damage — ( TriggerAddEventUnitDamageAbsorbed ) - [F] —
void
— Unit Takes Damage — ( TriggerAddEventUnitDamaged ) - [F] —
unit
— Damaging Unit — ( EventUnitDamageSourceUnit ) - [F] —
int
— Damaging Player — ( EventUnitDamageSourcePlayer ) - [F] —
string
[ gamelink::Effect ] — Damaging Effect — ( EventUnitDamageEffect ) - [F] —
fixed
— Triggering Damage Taken — ( EventUnitDamageAmount ) - [F] —
fixed
— Triggering Damage Attempted — ( EventUnitDamageAttempted ) - [F] —
fixed
— Triggering Damage Attempted Vitals — ( EventUnitDamageAttemptedVitals ) - [F] —
fixed
— Triggering Damage Absorbed — ( EventUnitDamageAbsorbed ) - [F] —
fixed
— Triggering Damage Behavior Shield — ( EventUnitDamageBehaviorShield ) - [F] —
fixed
— Triggering Vitals Leeched — ( EventUnitDamageVitalsLeeched ) - [F] —
int
— Triggering Unit Kill XP — ( EventUnitDamageKillXP ) - [F] —
point
— Damage Source Position — ( EventUnitDamageSourcePoint ) - [F] —
void
— Unit is Healed — ( TriggerAddEventUnitHealed ) - [F] —
unit
— Healing Unit — ( EventUnitHealLaunchUnit ) - [F] —
int
— Healing Player — ( EventUnitHealLaunchPlayer ) - [F] —
int
[ preset::UnitVitalType ] — Triggering Heal Vital Type — ( EventUnitHealVital ) - [F] —
fixed
— Triggering Heal Given — ( EventUnitHealAmount ) - [F] —
string
[ gamelink::Effect ] — Healing Effect — ( EventUnitHealEffect ) - [F] —
void
— Unit Spends Vital — ( TriggerAddEventUnitSpendVital ) - [F] —
int
[ preset::UnitVitalType ] — Triggering Spent Vital Type — ( EventUnitSpentVitalVital ) - [F] —
fixed
— Triggering Vital Spent — ( EventUnitSpentVitalAmount ) - [F] —
void
— Unit Acquires Target — ( TriggerAddEventUnitAcquiredTarget ) - [F] —
unit
— Acquired Target — ( libNtve_gf_AcquiredTarget ) - [F] —
void
— Unit Is Revived — ( TriggerAddEventUnitRevive ) - [F] —
unit
— Triggering Victim Unit — ( EventUnitVictimUnit ) - [F] —
unit
— Triggering Item Used — ( EventUnitItemUsed ) - [F] —
string
[ gamelink::Effect ] — Triggering Effect Used — ( EventUnitEffectUsed )
# Examples
# campaigns/void.sc2campaign
// L3721
TriggerAddEventUnitHealed(gt_ShieldBatteryHealsUnit, null, c_unitVitalShields, "ShieldBatteryRechargeChanneled")
// L4280
TriggerAddEventUnitHealed(gt_StatSentryShieldRestoration, null, c_unitVitalShields, "VoidSentryShieldRepair")
// L3721
TriggerAddEventUnitHealed(gt_ShieldBatteryHealsUnit, null, c_unitVitalShields, "ShieldBatteryRechargeChanneled")
// L4280
TriggerAddEventUnitHealed(gt_StatSentryShieldRestoration, null, c_unitVitalShields, "VoidSentryShieldRepair")
# campaigns/voidstory.sc2campaign
// L10822
TriggerAddEventUnitHealed(libVoiC_gt_PC_StatDamageHealed, null, c_unitVitalAny, null)
# mods/heroesdata.stormmod
// L12435
TriggerAddEventUnitHealed(libGDHL_gt_LeoricUndyingHealingDeathTimerReduction, null, c_unitVitalLife, "LeoricMasteryFealtyUntoDeathRestoreLifeUndying")
// L12436
TriggerAddEventUnitHealed(libGDHL_gt_LeoricUndyingHealingDeathTimerReduction, null, c_unitVitalLife, "LeoricDrainHopeGhostPeriodicHealerBase")
// L17716
TriggerAddEventUnitHealed(libGDHL_gt_HeroNecromancerTrackMortalWoundsDamageReduction, null, c_unitVitalLife, null)
// L24842
TriggerAddEventUnitHealed(libGDHL_gt_HeroUtherBlessedChampionTargetProc, null, c_unitVitalLife, "HolyLightCreateHealer")
// L24887
TriggerAddEventUnitHealed(libGDHL_gt_HeroUtherBlessedChampionSelfHealingProc, null, c_unitVitalLife, "HolyLightCreateSelfHealer")
# mods/heroesdata.stormmod
// L15229
TriggerAddEventUnitHealed(libGame_gt_AddCombatMedicHealing, null, c_unitVitalAny, null)
// L15523
TriggerAddEventUnitHealed(libGame_gt_ClutchHealerIncrement, null, c_unitVitalAny, null)
// L16879
TriggerAddEventUnitHealed(libGame_gt_HeroDeathStitchesPatchworkCreationTalentParticipatedInTakedown, null, c_unitVitalAny, null)
# mods/heroesdata.stormmod
// L2604
TriggerAddEventUnitHealed(libSprt_gt_StatTrackingHealingTracking, null, c_unitVitalAny, null)
# mods/heromods/alexstrasza.stormmod
// L321
TriggerAddEventUnitHealed(libHALE_gt_HeroAlexstraszaOverprotective, null, c_unitVitalLife, "AlexstraszaAbundanceCreateHealer")
# mods/heromods/fenix.stormmod
// L132
TriggerAddEventUnitHealed(libHFEN_gt_FenixRapidRechargeShieldHealing, null, c_unitVitalLife, null)
# mods/heromods/malthael.stormmod
// L234
TriggerAddEventUnitHealed(libHMTH_gt_HeroMalthaelTouchOfDeathHealingAbsorbedTrackerLifeGained, null, c_unitVitalLife, null)
# mods/heromods/zarya.stormmod
// L933
TriggerAddEventUnitHealed(libHZAR_gt_HeroZaryaEnergyMaximumChargeFCT, null, c_unitVitalEnergy, "ZaryaEnergyMaximumChargeCreateHealer")
# mods/starcoop/starcoop.sc2mod
// L26239
TriggerAddEventUnitHealed(libCOMI_gt_CM_Tychus_HealAchievement, null, c_unitVitalAny, null)
# mods/starcoop/starcoop.sc2mod
// L6846
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreRaynorMedicHeal, null, c_unitVitalLife, "heal")
// L6928
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreSwannSVHeal, null, c_unitVitalLife, null)
// L7221
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAbathurHealing, null, c_unitVitalAny, "AbathurMendInitialHealer")
// L7222
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAbathurHealing, null, c_unitVitalAny, "AbathurMendSecondaryHealer")
// L7223
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAbathurHealing, null, c_unitVitalAny, "QueenBurstHeal")
// L7346
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAlarakHeal, null, c_unitVitalAny, "SoulAbsorptionMU")
// L7391
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAlarakSacrificeHeal, null, c_unitVitalAny, "AlarakTheStrongestSurviveStealLife")
// L7392
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAlarakSacrificeHeal, null, c_unitVitalAny, "AlarakTheStrongestSurviveStealShield")
// L7470
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreNovaHeal, null, c_unitVitalAny, "HealingDroneHeal")
// L8159
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreTychusMedicHeal, null, c_unitVitalAny, "TychusMedicHeal")