# 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
- Get Unit Damage Dealt Time —
fixed
— UnitGetDamageDealtTime - Get Unit Damage Taken Time —
fixed
— UnitGetDamageTakenTime - Weapon Used In Attack —
string
<gamelink::Weapon> — EventUnitGetWeapon - Item Used In Attack —
unit
— EventUnitGetItem - Item Type Used In Attack —
string
<gamelink::Item> — EventUnitGetItemType - Unit Dies —
void
— TriggerAddEventUnitDied - Killing Unit —
unit
— libNtve_gf_KillingUnit - Killing Player —
int
— libNtve_gf_KillingPlayer - Triggering Death Type Check —
bool
— EventUnitDamageDeathCheck - Unit Is Being Removed —
void
— TriggerAddEventUnitRemoved - Unit Starts Attacking (Deprecated) —
void
— TriggerAddEventUnitStartedAttack - Unit Starts Attacking —
void
— TriggerAddEventUnitStartedAttack2 - Unit Is Attacked (Deprecated) —
void
— TriggerAddEventUnitAttacked - Unit Is Attacked —
void
— TriggerAddEventUnitAttacked2 - Attacking Unit —
unit
— EventUnitTarget - Unit Absorbs Damage —
void
— TriggerAddEventUnitDamageAbsorbed - Unit Takes Damage —
void
— TriggerAddEventUnitDamaged - Damaging Unit —
unit
— EventUnitDamageSourceUnit - Damaging Player —
int
— EventUnitDamageSourcePlayer - Damaging Effect —
string
<gamelink::Effect> — EventUnitDamageEffect - Triggering Damage Taken —
fixed
— EventUnitDamageAmount - Triggering Damage Attempted —
fixed
— EventUnitDamageAttempted - Triggering Damage Attempted Vitals —
fixed
— EventUnitDamageAttemptedVitals - Triggering Damage Absorbed —
fixed
— EventUnitDamageAbsorbed - Triggering Damage Behavior Shield —
fixed
— EventUnitDamageBehaviorShield - Triggering Vitals Leeched —
fixed
— EventUnitDamageVitalsLeeched - Triggering Unit Kill XP —
int
— EventUnitDamageKillXP - Damage Source Position —
point
— EventUnitDamageSourcePoint - Unit is Healed —
void
— TriggerAddEventUnitHealed - Healing Unit —
unit
— EventUnitHealLaunchUnit - Healing Player —
int
— EventUnitHealLaunchPlayer - Triggering Heal Vital Type —
int
<preset::UnitVitalType> — EventUnitHealVital - Triggering Heal Given —
fixed
— EventUnitHealAmount - Healing Effect —
string
<gamelink::Effect> — EventUnitHealEffect - Unit Spends Vital —
void
— TriggerAddEventUnitSpendVital - Triggering Spent Vital Type —
int
<preset::UnitVitalType> — EventUnitSpentVitalVital - Triggering Vital Spent —
fixed
— EventUnitSpentVitalAmount - Unit Acquires Target —
void
— TriggerAddEventUnitAcquiredTarget - Acquired Target —
unit
— libNtve_gf_AcquiredTarget - Unit Is Revived —
void
— TriggerAddEventUnitRevive - Triggering Victim Unit —
unit
— EventUnitVictimUnit - Triggering Item Used —
unit
— EventUnitItemUsed - Triggering Effect Used —
string
<gamelink::Effect> — EventUnitEffectUsed
# Examples
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:3721
void gt_ShieldBatteryHealsUnit_Init () {
gt_ShieldBatteryHealsUnit = TriggerCreate("gt_ShieldBatteryHealsUnit_Func");
TriggerAddEventUnitHealed(gt_ShieldBatteryHealsUnit, null, c_unitVitalShields, "ShieldBatteryRechargeChanneled");
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ppurifier01.sc2map/MapScript.galaxy:4280
void gt_StatSentryShieldRestoration_Init () {
gt_StatSentryShieldRestoration = TriggerCreate("gt_StatSentryShieldRestoration_Func");
TriggerAddEventUnitHealed(gt_StatSentryShieldRestoration, null, c_unitVitalShields, "VoidSentryShieldRepair");
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur03.sc2map — MapScript.galaxy:3721
void gt_ShieldBatteryHealsUnit_Init () {
gt_ShieldBatteryHealsUnit = TriggerCreate("gt_ShieldBatteryHealsUnit_Func");
TriggerAddEventUnitHealed(gt_ShieldBatteryHealsUnit, null, c_unitVitalShields, "ShieldBatteryRechargeChanneled");
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier01.sc2map — MapScript.galaxy:4280
void gt_StatSentryShieldRestoration_Init () {
gt_StatSentryShieldRestoration = TriggerCreate("gt_StatSentryShieldRestoration_Func");
TriggerAddEventUnitHealed(gt_StatSentryShieldRestoration, null, c_unitVitalShields, "VoidSentryShieldRepair");
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:10822
void libVoiC_gt_PC_StatDamageHealed_Init () {
libVoiC_gt_PC_StatDamageHealed = TriggerCreate("libVoiC_gt_PC_StatDamageHealed_Func");
TriggerAddEventUnitHealed(libVoiC_gt_PC_StatDamageHealed, null, c_unitVitalAny, null);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:12435
void libGDHL_gt_LeoricUndyingHealingDeathTimerReduction_Init () {
libGDHL_gt_LeoricUndyingHealingDeathTimerReduction = TriggerCreate("libGDHL_gt_LeoricUndyingHealingDeathTimerReduction_Func");
TriggerAddEventUnitHealed(libGDHL_gt_LeoricUndyingHealingDeathTimerReduction, null, c_unitVitalLife, "LeoricMasteryFealtyUntoDeathRestoreLifeUndying");
TriggerAddEventUnitHealed(libGDHL_gt_LeoricUndyingHealingDeathTimerReduction, null, c_unitVitalLife, "LeoricDrainHopeGhostPeriodicHealerBase");
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:12436
libGDHL_gt_LeoricUndyingHealingDeathTimerReduction = TriggerCreate("libGDHL_gt_LeoricUndyingHealingDeathTimerReduction_Func");
TriggerAddEventUnitHealed(libGDHL_gt_LeoricUndyingHealingDeathTimerReduction, null, c_unitVitalLife, "LeoricMasteryFealtyUntoDeathRestoreLifeUndying");
TriggerAddEventUnitHealed(libGDHL_gt_LeoricUndyingHealingDeathTimerReduction, null, c_unitVitalLife, "LeoricDrainHopeGhostPeriodicHealerBase");
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:17716
libGDHL_gt_HeroNecromancerTrackMortalWoundsDamageReduction = TriggerCreate("libGDHL_gt_HeroNecromancerTrackMortalWoundsDamageReduction_Func");
TriggerEnable(libGDHL_gt_HeroNecromancerTrackMortalWoundsDamageReduction, false);
TriggerAddEventUnitHealed(libGDHL_gt_HeroNecromancerTrackMortalWoundsDamageReduction, null, c_unitVitalLife, null);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:24842
libGDHL_gt_HeroUtherBlessedChampionTargetProc = TriggerCreate("libGDHL_gt_HeroUtherBlessedChampionTargetProc_Func");
TriggerEnable(libGDHL_gt_HeroUtherBlessedChampionTargetProc, false);
TriggerAddEventUnitHealed(libGDHL_gt_HeroUtherBlessedChampionTargetProc, null, c_unitVitalLife, "HolyLightCreateHealer");
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:24887
libGDHL_gt_HeroUtherBlessedChampionSelfHealingProc = TriggerCreate("libGDHL_gt_HeroUtherBlessedChampionSelfHealingProc_Func");
TriggerEnable(libGDHL_gt_HeroUtherBlessedChampionSelfHealingProc, false);
TriggerAddEventUnitHealed(libGDHL_gt_HeroUtherBlessedChampionSelfHealingProc, null, c_unitVitalLife, "HolyLightCreateSelfHealer");
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:15229
void libGame_gt_AddCombatMedicHealing_Init () {
libGame_gt_AddCombatMedicHealing = TriggerCreate("libGame_gt_AddCombatMedicHealing_Func");
TriggerAddEventUnitHealed(libGame_gt_AddCombatMedicHealing, null, c_unitVitalAny, null);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:15523
void libGame_gt_ClutchHealerIncrement_Init () {
libGame_gt_ClutchHealerIncrement = TriggerCreate("libGame_gt_ClutchHealerIncrement_Func");
TriggerAddEventUnitHealed(libGame_gt_ClutchHealerIncrement, null, c_unitVitalAny, null);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:16879
libGame_gt_HeroDeathStitchesPatchworkCreationTalentParticipatedInTakedown = TriggerCreate("libGame_gt_HeroDeathStitchesPatchworkCreationTalentParticipatedInTakedown_Func");
libGame_gf_HeroParticipatedInTakedown(libGame_gt_HeroDeathStitchesPatchworkCreationTalentParticipatedInTakedown);
TriggerAddEventUnitHealed(libGame_gt_HeroDeathStitchesPatchworkCreationTalentParticipatedInTakedown, null, c_unitVitalAny, null);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:2604
libSprt_gt_StatTrackingHealingTracking = TriggerCreate("libSprt_gt_StatTrackingHealingTracking_Func");
TriggerEnable(libSprt_gt_StatTrackingHealingTracking, false);
TriggerAddEventUnitHealed(libSprt_gt_StatTrackingHealingTracking, null, c_unitVitalAny, null);
}
mods/heromods/alexstrasza.stormmod — base.stormdata/LibHALE.galaxy:321
libHALE_gt_HeroAlexstraszaOverprotective = TriggerCreate("libHALE_gt_HeroAlexstraszaOverprotective_Func");
TriggerEnable(libHALE_gt_HeroAlexstraszaOverprotective, false);
TriggerAddEventUnitHealed(libHALE_gt_HeroAlexstraszaOverprotective, null, c_unitVitalLife, "AlexstraszaAbundanceCreateHealer");
}
mods/heromods/fenix.stormmod — base.stormdata/LibHFEN.galaxy:132
libHFEN_gt_FenixRapidRechargeShieldHealing = TriggerCreate("libHFEN_gt_FenixRapidRechargeShieldHealing_Func");
TriggerEnable(libHFEN_gt_FenixRapidRechargeShieldHealing, false);
TriggerAddEventUnitHealed(libHFEN_gt_FenixRapidRechargeShieldHealing, null, c_unitVitalLife, null);
}
mods/heromods/malthael.stormmod — base.stormdata/LibHMTH.galaxy:234
libHMTH_gt_HeroMalthaelTouchOfDeathHealingAbsorbedTrackerLifeGained = TriggerCreate("libHMTH_gt_HeroMalthaelTouchOfDeathHealingAbsorbedTrackerLifeGained_Func");
TriggerEnable(libHMTH_gt_HeroMalthaelTouchOfDeathHealingAbsorbedTrackerLifeGained, false);
TriggerAddEventUnitHealed(libHMTH_gt_HeroMalthaelTouchOfDeathHealingAbsorbedTrackerLifeGained, null, c_unitVitalLife, null);
}
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:933
libHZAR_gt_HeroZaryaEnergyMaximumChargeFCT = TriggerCreate("libHZAR_gt_HeroZaryaEnergyMaximumChargeFCT_Func");
TriggerEnable(libHZAR_gt_HeroZaryaEnergyMaximumChargeFCT, false);
TriggerAddEventUnitHealed(libHZAR_gt_HeroZaryaEnergyMaximumChargeFCT, null, c_unitVitalEnergy, "ZaryaEnergyMaximumChargeCreateHealer");
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:26247
libCOMI_gt_CM_Tychus_HealAchievement = TriggerCreate("libCOMI_gt_CM_Tychus_HealAchievement_Func");
TriggerEnable(libCOMI_gt_CM_Tychus_HealAchievement, false);
TriggerAddEventUnitHealed(libCOMI_gt_CM_Tychus_HealAchievement, null, c_unitVitalAny, null);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:6846
libCOOC_gt_CC_ScoreRaynorMedicHeal = TriggerCreate("libCOOC_gt_CC_ScoreRaynorMedicHeal_Func");
TriggerEnable(libCOOC_gt_CC_ScoreRaynorMedicHeal, false);
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreRaynorMedicHeal, null, c_unitVitalLife, "heal");
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:6928
libCOOC_gt_CC_ScoreSwannSVHeal = TriggerCreate("libCOOC_gt_CC_ScoreSwannSVHeal_Func");
TriggerEnable(libCOOC_gt_CC_ScoreSwannSVHeal, false);
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreSwannSVHeal, null, c_unitVitalLife, null);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:7221
libCOOC_gt_CC_ScoreAbathurHealing = TriggerCreate("libCOOC_gt_CC_ScoreAbathurHealing_Func");
TriggerEnable(libCOOC_gt_CC_ScoreAbathurHealing, false);
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAbathurHealing, null, c_unitVitalAny, "AbathurMendInitialHealer");
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAbathurHealing, null, c_unitVitalAny, "AbathurMendSecondaryHealer");
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAbathurHealing, null, c_unitVitalAny, "QueenBurstHeal");
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:7222
TriggerEnable(libCOOC_gt_CC_ScoreAbathurHealing, false);
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAbathurHealing, null, c_unitVitalAny, "AbathurMendInitialHealer");
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAbathurHealing, null, c_unitVitalAny, "AbathurMendSecondaryHealer");
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAbathurHealing, null, c_unitVitalAny, "QueenBurstHeal");
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:7223
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAbathurHealing, null, c_unitVitalAny, "AbathurMendInitialHealer");
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAbathurHealing, null, c_unitVitalAny, "AbathurMendSecondaryHealer");
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAbathurHealing, null, c_unitVitalAny, "QueenBurstHeal");
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:7346
libCOOC_gt_CC_ScoreAlarakHeal = TriggerCreate("libCOOC_gt_CC_ScoreAlarakHeal_Func");
TriggerEnable(libCOOC_gt_CC_ScoreAlarakHeal, false);
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAlarakHeal, null, c_unitVitalAny, "SoulAbsorptionMU");
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:7391
libCOOC_gt_CC_ScoreAlarakSacrificeHeal = TriggerCreate("libCOOC_gt_CC_ScoreAlarakSacrificeHeal_Func");
TriggerEnable(libCOOC_gt_CC_ScoreAlarakSacrificeHeal, false);
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAlarakSacrificeHeal, null, c_unitVitalAny, "AlarakTheStrongestSurviveStealLife");
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAlarakSacrificeHeal, null, c_unitVitalAny, "AlarakTheStrongestSurviveStealShield");
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:7392
TriggerEnable(libCOOC_gt_CC_ScoreAlarakSacrificeHeal, false);
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAlarakSacrificeHeal, null, c_unitVitalAny, "AlarakTheStrongestSurviveStealLife");
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreAlarakSacrificeHeal, null, c_unitVitalAny, "AlarakTheStrongestSurviveStealShield");
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:7470
libCOOC_gt_CC_ScoreNovaHeal = TriggerCreate("libCOOC_gt_CC_ScoreNovaHeal_Func");
TriggerEnable(libCOOC_gt_CC_ScoreNovaHeal, false);
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreNovaHeal, null, c_unitVitalAny, "HealingDroneHeal");
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:8159
libCOOC_gt_CC_ScoreTychusMedicHeal = TriggerCreate("libCOOC_gt_CC_ScoreTychusMedicHeal_Func");
TriggerEnable(libCOOC_gt_CC_ScoreTychusMedicHeal, false);
TriggerAddEventUnitHealed(libCOOC_gt_CC_ScoreTychusMedicHeal, null, c_unitVitalAny, "TychusMedicHeal");
}