# 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.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.galaxy:4280

void gt_StatSentryShieldRestoration_Init () {
    gt_StatSentryShieldRestoration = TriggerCreate("gt_StatSentryShieldRestoration_Func");
    TriggerAddEventUnitHealed(gt_StatSentryShieldRestoration, null, c_unitVitalShields, "VoidSentryShieldRepair");
}

campaigns/voidstory.sc2campaignbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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");
}