# Unit is Healed

Grammaru is healed of vitalType (from healEffect effects)
FlagsNative | 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 ] — Unit
  • int [ preset::UnitVitalType ] — Vital Type
  • string [ gamelink::Effect ] — Heal Effect

Returns — void

native void TriggerAddEventUnitHealed(
	trigger inTrigger,
	unitref inUnit,
	int inHealType,
	string inEffect,
);

Category: Unit / Combat

# Examples

# campaigns/void.sc2campaign

MapScript.galaxy

// 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

VoidCampaignLib.galaxy

// L10822
TriggerAddEventUnitHealed(libVoiC_gt_PC_StatDamageHealed, null, c_unitVitalAny, null)

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// 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

GameLib.galaxy

// 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

SupportLib.galaxy

// L2604
TriggerAddEventUnitHealed(libSprt_gt_StatTrackingHealingTracking, null, c_unitVitalAny, null)

# mods/heromods/alexstrasza.stormmod

LibHALE.galaxy

// L321
TriggerAddEventUnitHealed(libHALE_gt_HeroAlexstraszaOverprotective, null, c_unitVitalLife, "AlexstraszaAbundanceCreateHealer")

# mods/heromods/fenix.stormmod

LibHFEN.galaxy

// L132
TriggerAddEventUnitHealed(libHFEN_gt_FenixRapidRechargeShieldHealing, null, c_unitVitalLife, null)

# mods/heromods/malthael.stormmod

LibHMTH.galaxy

// L234
TriggerAddEventUnitHealed(libHMTH_gt_HeroMalthaelTouchOfDeathHealingAbsorbedTrackerLifeGained, null, c_unitVitalLife, null)

# mods/heromods/zarya.stormmod

LibHZAR.galaxy

// L933
TriggerAddEventUnitHealed(libHZAR_gt_HeroZaryaEnergyMaximumChargeFCT, null, c_unitVitalEnergy, "ZaryaEnergyMaximumChargeCreateHealer")

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L26239
TriggerAddEventUnitHealed(libCOMI_gt_CM_Tychus_HealAchievement, null, c_unitVitalAny, null)

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// 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")