# Unit Is Attacked

Grammaru is attacked with weapon
FlagsNative | Event

This event fires when a unit is attacked. Use “Attacking Unit” to refer to the unit performing the attack. Use “Triggering Unit” to refer to the unit being attacked. Use “Triggering Player” to get the owner of the unit being attacked.

# Arguments

  • unitref<unit> — Unit
  • string<gamelink::Weapon> — Weapon

Returns — void

native void TriggerAddEventUnitAttacked2(
	trigger t,
	unitref u,
	string inWeapon,
);

Category: Unit / Combat

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4321

void gt_HybridAttack_Init () {
    gt_HybridAttack = TriggerCreate("gt_HybridAttack_Func");
    TriggerAddEventUnitAttacked2(gt_HybridAttack, null, "ZHybrid");
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4322

    gt_HybridAttack = TriggerCreate("gt_HybridAttack_Func");
    TriggerAddEventUnitAttacked2(gt_HybridAttack, null, "ZHybrid");
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4323

    TriggerAddEventUnitAttacked2(gt_HybridAttack, null, "ZHybrid");
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4324

    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4325

    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4326

    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4327

    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[8]"), null);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4328

    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[8]"), null);
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:4329

    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[8]"), null);
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:2928

    gt_DestroyPylon1Reticle = TriggerCreate("gt_DestroyPylon1Reticle_Func");
    TriggerEnable(gt_DestroyPylon1Reticle, false);
    TriggerAddEventUnitAttacked2(gt_DestroyPylon1Reticle, UnitRefFromUnit(UnitFromId(1593)), null);
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:2965

    gt_DestroyPylon2Reticle = TriggerCreate("gt_DestroyPylon2Reticle_Func");
    TriggerEnable(gt_DestroyPylon2Reticle, false);
    TriggerAddEventUnitAttacked2(gt_DestroyPylon2Reticle, UnitRefFromUnit(UnitFromId(1594)), null);
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:4321

void gt_HybridAttack_Init () {
    gt_HybridAttack = TriggerCreate("gt_HybridAttack_Func");
    TriggerAddEventUnitAttacked2(gt_HybridAttack, null, "ZHybrid");
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:4322

    gt_HybridAttack = TriggerCreate("gt_HybridAttack_Func");
    TriggerAddEventUnitAttacked2(gt_HybridAttack, null, "ZHybrid");
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:4323

    TriggerAddEventUnitAttacked2(gt_HybridAttack, null, "ZHybrid");
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:4324

    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[1]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:4325

    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[2]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:4326

    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[3]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:4327

    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[4]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[8]"), null);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:4328

    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[5]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[8]"), null);
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2mapMapScript.galaxy:4329

    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[6]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[7]"), null);
    TriggerAddEventUnitAttacked2(gt_HybridAttack, UnitRefFromVariable("gv_hybridUnitArray[8]"), null);
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:2928

    gt_DestroyPylon1Reticle = TriggerCreate("gt_DestroyPylon1Reticle_Func");
    TriggerEnable(gt_DestroyPylon1Reticle, false);
    TriggerAddEventUnitAttacked2(gt_DestroyPylon1Reticle, UnitRefFromUnit(UnitFromId(1593)), null);
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:2965

    gt_DestroyPylon2Reticle = TriggerCreate("gt_DestroyPylon2Reticle_Func");
    TriggerEnable(gt_DestroyPylon2Reticle, false);
    TriggerAddEventUnitAttacked2(gt_DestroyPylon2Reticle, UnitRefFromUnit(UnitFromId(1594)), null);
}

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/ppurifier03.sc2map/MapScript.galaxy:2992

void gt_TransmissionCoreMatrixAttackedQ_Init () {
    gt_TransmissionCoreMatrixAttackedQ = TriggerCreate("gt_TransmissionCoreMatrixAttackedQ_Func");
    TriggerAddEventUnitAttacked2(gt_TransmissionCoreMatrixAttackedQ, UnitRefFromVariable("gv_purifierCoreMatrix"), null);
}

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier03.sc2mapMapScript.galaxy:2992

void gt_TransmissionCoreMatrixAttackedQ_Init () {
    gt_TransmissionCoreMatrixAttackedQ = TriggerCreate("gt_TransmissionCoreMatrixAttackedQ_Func");
    TriggerAddEventUnitAttacked2(gt_TransmissionCoreMatrixAttackedQ, UnitRefFromVariable("gv_purifierCoreMatrix"), null);
}

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:2052

    libAMCT_gt_ARMSkyTempleTempleAttacks = TriggerCreate("libAMCT_gt_ARMSkyTempleTempleAttacks_Func");
    TriggerEnable(libAMCT_gt_ARMSkyTempleTempleAttacks, false);
    TriggerAddEventUnitAttacked2(libAMCT_gt_ARMSkyTempleTempleAttacks, null, "LuxoriaTempleStage1Weapon");
}

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:6213

void libPEB1_gt_ZagaraHunterKillerTransfusion_Init () {
    libPEB1_gt_ZagaraHunterKillerTransfusion = TriggerCreate("libPEB1_gt_ZagaraHunterKillerTransfusion_Func");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskMelee");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskRanged");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraMutaliskWeapon");

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:6214

    libPEB1_gt_ZagaraHunterKillerTransfusion = TriggerCreate("libPEB1_gt_ZagaraHunterKillerTransfusion_Func");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskMelee");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskRanged");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraMutaliskWeapon");
}

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:6215

    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskMelee");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskRanged");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraMutaliskWeapon");
}

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:4835

void libPEB1_gt_ZagaraHunterKillerTransfusion_Init () {
    libPEB1_gt_ZagaraHunterKillerTransfusion = TriggerCreate("libPEB1_gt_ZagaraHunterKillerTransfusion_Func");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskMelee");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskRanged");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraMutaliskWeapon");

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:4836

    libPEB1_gt_ZagaraHunterKillerTransfusion = TriggerCreate("libPEB1_gt_ZagaraHunterKillerTransfusion_Func");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskMelee");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskRanged");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraMutaliskWeapon");
}

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:4837

    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskMelee");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraHydraliskRanged");
    TriggerAddEventUnitAttacked2(libPEB1_gt_ZagaraHunterKillerTransfusion, null, "ZagaraMutaliskWeapon");
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:25650

    libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion = TriggerCreate("libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion_Func");
    TriggerEnable(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, false);
    TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraHydraliskMelee");
    TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraHydraliskRanged");
    TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraMutaliskWeapon");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:25651

    TriggerEnable(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, false);
    TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraHydraliskMelee");
    TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraHydraliskRanged");
    TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraMutaliskWeapon");
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:25652

    TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraHydraliskMelee");
    TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraHydraliskRanged");
    TriggerAddEventUnitAttacked2(libGDHL_gt_HeroZagaraHunterKillerHydraliskTransfusion, null, "ZagaraMutaliskWeapon");
}

mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmodbase.stormdata/LibBBAY.galaxy:2082

    libBBAY_gt_MMBBCannonballsTreasureChestAttacked = TriggerCreate("libBBAY_gt_MMBBCannonballsTreasureChestAttacked_Func");
    TriggerEnable(libBBAY_gt_MMBBCannonballsTreasureChestAttacked, false);
    TriggerAddEventUnitAttacked2(libBBAY_gt_MMBBCannonballsTreasureChestAttacked, UnitRefFromVariable("libBBAY_gv_mMBBCannonballsTreasureChestChests[1]"), null);
    TriggerAddEventUnitAttacked2(libBBAY_gt_MMBBCannonballsTreasureChestAttacked, UnitRefFromVariable("libBBAY_gv_mMBBCannonballsTreasureChestChests[2]"), null);
}

mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmodbase.stormdata/LibBBAY.galaxy:2083

    TriggerEnable(libBBAY_gt_MMBBCannonballsTreasureChestAttacked, false);
    TriggerAddEventUnitAttacked2(libBBAY_gt_MMBBCannonballsTreasureChestAttacked, UnitRefFromVariable("libBBAY_gv_mMBBCannonballsTreasureChestChests[1]"), null);
    TriggerAddEventUnitAttacked2(libBBAY_gt_MMBBCannonballsTreasureChestAttacked, UnitRefFromVariable("libBBAY_gv_mMBBCannonballsTreasureChestChests[2]"), null);
}

mods/heromods/samuro.stormmodbase.stormdata/LibHSAM.galaxy:1329

    libHSAM_gt_SamuroMirrorImageAttackOrderRedirectAI = TriggerCreate("libHSAM_gt_SamuroMirrorImageAttackOrderRedirectAI_Func");
    TriggerEnable(libHSAM_gt_SamuroMirrorImageAttackOrderRedirectAI, false);
    TriggerAddEventUnitAttacked2(libHSAM_gt_SamuroMirrorImageAttackOrderRedirectAI, null, "SamuroWeapon");
}

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:5274

    gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ = TriggerCreate("gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ_Func");
    TriggerEnable(gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ, false);
    TriggerAddEventUnitAttacked2(gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ, null, "NovaWeaponPsiBlade");
}

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:4636

void gt_FoundTheMinersViaAttackQ_Init () {
    gt_FoundTheMinersViaAttackQ = TriggerCreate("gt_FoundTheMinersViaAttackQ_Func");
    TriggerAddEventUnitAttacked2(gt_FoundTheMinersViaAttackQ, null, null);
}

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:5058

void gt_BansheeRunQ_Init () {
    gt_BansheeRunQ = TriggerCreate("gt_BansheeRunQ_Func");
    TriggerAddEventUnitAttacked2(gt_BansheeRunQ, null, null);
}

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:5883

void gt_TerrazineTankAttackedWarningQ_Init () {
    gt_TerrazineTankAttackedWarningQ = TriggerCreate("gt_TerrazineTankAttackedWarningQ_Func");
    TriggerAddEventUnitAttacked2(gt_TerrazineTankAttackedWarningQ, null, null);
}

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:5976

void gt_TerrazineTankLowLifeWarningQ_Init () {
    gt_TerrazineTankLowLifeWarningQ = TriggerCreate("gt_TerrazineTankLowLifeWarningQ_Func");
    TriggerAddEventUnitAttacked2(gt_TerrazineTankLowLifeWarningQ, null, null);
}

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2540

void gt_NovaAttacksDOMUnitInDefendRegion_Init () {
    gt_NovaAttacksDOMUnitInDefendRegion = TriggerCreate("gt_NovaAttacksDOMUnitInDefendRegion_Func");
    TriggerAddEventUnitAttacked2(gt_NovaAttacksDOMUnitInDefendRegion, null, null);
}

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:3491

void gt_DominatedUnitAttacks_Init () {
    gt_DominatedUnitAttacks = TriggerCreate("gt_DominatedUnitAttacks_Func");
    TriggerAddEventUnitAttacked2(gt_DominatedUnitAttacks, null, null);
}

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:3643

void gt_NovaAttackedWhileHavingHarmlessDominatedBuddy_Init () {
    gt_NovaAttackedWhileHavingHarmlessDominatedBuddy = TriggerCreate("gt_NovaAttackedWhileHavingHarmlessDominatedBuddy_Func");
    TriggerAddEventUnitAttacked2(gt_NovaAttackedWhileHavingHarmlessDominatedBuddy, null, null);
}

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:4310

void gt_S1CombatInDefendRegionsController_Init () {
    gt_S1CombatInDefendRegionsController = TriggerCreate("gt_S1CombatInDefendRegionsController_Func");
    TriggerAddEventUnitAttacked2(gt_S1CombatInDefendRegionsController, null, null);
    TriggerAddEventUnitDamaged(gt_S1CombatInDefendRegionsController, null, c_unitDamageTypeAny, c_unitDamageEither, null);
    TriggerAddEventUnitStartedAttack2(gt_S1CombatInDefendRegionsController, null, null);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:6247

void gt_S2CombatInDefendRegionsController_Init () {
    gt_S2CombatInDefendRegionsController = TriggerCreate("gt_S2CombatInDefendRegionsController_Func");
    TriggerAddEventUnitAttacked2(gt_S2CombatInDefendRegionsController, null, null);
    TriggerAddEventUnitDamaged(gt_S2CombatInDefendRegionsController, null, c_unitDamageTypeAny, c_unitDamageEither, null);
    TriggerAddEventUnitStartedAttack2(gt_S2CombatInDefendRegionsController, null, null);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:6591

    gt_S2RemoveSonarDroneReticles = TriggerCreate("gt_S2RemoveSonarDroneReticles_Func");
    TriggerAddEventUnitDied(gt_S2RemoveSonarDroneReticles, null);
    TriggerAddEventUnitAttacked2(gt_S2RemoveSonarDroneReticles, null, null);
    TriggerAddEventUnitDamaged(gt_S2RemoveSonarDroneReticles, null, c_unitDamageTypeAny, c_unitDamageEither, null);
    TriggerAddEventUnitBehaviorChange(gt_S2RemoveSonarDroneReticles, null, "FlashBangGrenade", c_unitBehaviorChangeAny);

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:5274

    gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ = TriggerCreate("gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ_Func");
    TriggerEnable(gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ, false);
    TriggerAddEventUnitAttacked2(gt_S2NovaKillsAnotherinSwordTutorialRoomTransmissionQ, null, "NovaWeaponPsiBlade");
}

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2mapMapScript.galaxy:4636

void gt_FoundTheMinersViaAttackQ_Init () {
    gt_FoundTheMinersViaAttackQ = TriggerCreate("gt_FoundTheMinersViaAttackQ_Func");
    TriggerAddEventUnitAttacked2(gt_FoundTheMinersViaAttackQ, null, null);
}

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2mapMapScript.galaxy:5058

void gt_BansheeRunQ_Init () {
    gt_BansheeRunQ = TriggerCreate("gt_BansheeRunQ_Func");
    TriggerAddEventUnitAttacked2(gt_BansheeRunQ, null, null);
}

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2mapMapScript.galaxy:5883

void gt_TerrazineTankAttackedWarningQ_Init () {
    gt_TerrazineTankAttackedWarningQ = TriggerCreate("gt_TerrazineTankAttackedWarningQ_Func");
    TriggerAddEventUnitAttacked2(gt_TerrazineTankAttackedWarningQ, null, null);
}

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2mapMapScript.galaxy:5976

void gt_TerrazineTankLowLifeWarningQ_Init () {
    gt_TerrazineTankLowLifeWarningQ = TriggerCreate("gt_TerrazineTankLowLifeWarningQ_Func");
    TriggerAddEventUnitAttacked2(gt_TerrazineTankLowLifeWarningQ, null, null);
}

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:2540

void gt_NovaAttacksDOMUnitInDefendRegion_Init () {
    gt_NovaAttacksDOMUnitInDefendRegion = TriggerCreate("gt_NovaAttacksDOMUnitInDefendRegion_Func");
    TriggerAddEventUnitAttacked2(gt_NovaAttacksDOMUnitInDefendRegion, null, null);
}

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:3491

void gt_DominatedUnitAttacks_Init () {
    gt_DominatedUnitAttacks = TriggerCreate("gt_DominatedUnitAttacks_Func");
    TriggerAddEventUnitAttacked2(gt_DominatedUnitAttacks, null, null);
}

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:3643

void gt_NovaAttackedWhileHavingHarmlessDominatedBuddy_Init () {
    gt_NovaAttackedWhileHavingHarmlessDominatedBuddy = TriggerCreate("gt_NovaAttackedWhileHavingHarmlessDominatedBuddy_Func");
    TriggerAddEventUnitAttacked2(gt_NovaAttackedWhileHavingHarmlessDominatedBuddy, null, null);
}

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:4310

void gt_S1CombatInDefendRegionsController_Init () {
    gt_S1CombatInDefendRegionsController = TriggerCreate("gt_S1CombatInDefendRegionsController_Func");
    TriggerAddEventUnitAttacked2(gt_S1CombatInDefendRegionsController, null, null);
    TriggerAddEventUnitDamaged(gt_S1CombatInDefendRegionsController, null, c_unitDamageTypeAny, c_unitDamageEither, null);
    TriggerAddEventUnitStartedAttack2(gt_S1CombatInDefendRegionsController, null, null);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:6247

void gt_S2CombatInDefendRegionsController_Init () {
    gt_S2CombatInDefendRegionsController = TriggerCreate("gt_S2CombatInDefendRegionsController_Func");
    TriggerAddEventUnitAttacked2(gt_S2CombatInDefendRegionsController, null, null);
    TriggerAddEventUnitDamaged(gt_S2CombatInDefendRegionsController, null, c_unitDamageTypeAny, c_unitDamageEither, null);
    TriggerAddEventUnitStartedAttack2(gt_S2CombatInDefendRegionsController, null, null);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:6591

    gt_S2RemoveSonarDroneReticles = TriggerCreate("gt_S2RemoveSonarDroneReticles_Func");
    TriggerAddEventUnitDied(gt_S2RemoveSonarDroneReticles, null);
    TriggerAddEventUnitAttacked2(gt_S2RemoveSonarDroneReticles, null, null);
    TriggerAddEventUnitDamaged(gt_S2RemoveSonarDroneReticles, null, c_unitDamageTypeAny, c_unitDamageEither, null);
    TriggerAddEventUnitBehaviorChange(gt_S2RemoveSonarDroneReticles, null, "FlashBangGrenade", c_unitBehaviorChangeAny);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:33151

    libCOMI_gt_CM_VOEnemySpotted = TriggerCreate("libCOMI_gt_CM_VOEnemySpotted_Func");
    TriggerEnable(libCOMI_gt_CM_VOEnemySpotted, false);
    TriggerAddEventUnitAttacked2(libCOMI_gt_CM_VOEnemySpotted, null, null);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:33272

    libCOMI_gt_CM_VOEnemyCloakedSpotted = TriggerCreate("libCOMI_gt_CM_VOEnemyCloakedSpotted_Func");
    TriggerEnable(libCOMI_gt_CM_VOEnemyCloakedSpotted, false);
    TriggerAddEventUnitAttacked2(libCOMI_gt_CM_VOEnemyCloakedSpotted, null, null);
}