# Unit Behavior Changes From Category

Grammarunit has category behavior change type
FlagsNative | Event

# Arguments

Returns — void

native void TriggerAddEventUnitBehaviorChangeFromCategory(
	trigger t,
	unitref u,
	int inCategory,
	int inChangeType,
);

Category: Behavior / Basic

# Examples

# mods/heroes.stormmod

MapScript.galaxy

// L2697
TriggerAddEventUnitBehaviorChangeFromCategory(gt_TargetDummyLeavesItsArea, null, c_behaviorCategoryStun, c_unitBehaviorChangeDeactivate)
// L2698
TriggerAddEventUnitBehaviorChangeFromCategory(gt_TargetDummyLeavesItsArea, null, c_behaviorCategoryPushOrPull, c_unitBehaviorChangeDeactivate)
// L2697
TriggerAddEventUnitBehaviorChangeFromCategory(gt_TargetDummyLeavesItsArea, null, c_behaviorCategoryStun, c_unitBehaviorChangeDeactivate)
// L2698
TriggerAddEventUnitBehaviorChangeFromCategory(gt_TargetDummyLeavesItsArea, null, c_behaviorCategoryPushOrPull, c_unitBehaviorChangeDeactivate)

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L4486
TriggerAddEventUnitBehaviorChangeFromCategory(libGDHL_gt_HeroGenericSpeedRibbonController, null, c_behaviorCategoryFast, c_unitBehaviorChangeAny)
// L4487
TriggerAddEventUnitBehaviorChangeFromCategory(libGDHL_gt_HeroGenericSpeedRibbonController, null, c_behaviorCategorySlow, c_unitBehaviorChangeAny)
// L4488
TriggerAddEventUnitBehaviorChangeFromCategory(libGDHL_gt_HeroGenericSpeedRibbonController, null, c_behaviorCategoryPushOrPull, c_unitBehaviorChangeAny)
// L4489
TriggerAddEventUnitBehaviorChangeFromCategory(libGDHL_gt_HeroGenericSpeedRibbonController, null, c_behaviorCategoryTimeStop, c_unitBehaviorChangeAny)
// L4522
TriggerAddEventUnitBehaviorChangeFromCategory(libGDHL_gt_HeroGenericSlowFXController, null, c_behaviorCategorySlow, c_unitBehaviorChangeAny)
// L4523
TriggerAddEventUnitBehaviorChangeFromCategory(libGDHL_gt_HeroGenericSlowFXController, null, c_behaviorCategoryPushOrPull, c_unitBehaviorChangeAny)
// L8226
TriggerAddEventUnitBehaviorChangeFromCategory(libGDHL_gt_HeroChenStormEarthAndFireStasis, null, c_behaviorCategoryDebuffStasis, c_unitBehaviorChangeCreate)
// L8327
TriggerAddEventUnitBehaviorChangeFromCategory(libGDHL_gt_HeroChenStormEarthAndFireStasisCleanup, null, c_behaviorCategoryDebuffStasis, c_unitBehaviorChangeDestroy)
// L9647
TriggerAddEventUnitBehaviorChangeFromCategory(libGDHL_gt_HeroDryadAbolishMagicCCRecognition, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeCreate)
// L9648
TriggerAddEventUnitBehaviorChangeFromCategory(libGDHL_gt_HeroDryadAbolishMagicCCRecognition, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeRefresh)

# mods/heroesdata.stormmod

GameLib.galaxy

// L14264
TriggerAddEventUnitBehaviorChangeFromCategory(libGame_gt_CCRecognitionSlow, null, c_behaviorCategorySlow, c_unitBehaviorChangeRefresh)
// L14265
TriggerAddEventUnitBehaviorChangeFromCategory(libGame_gt_CCRecognitionSlow, null, c_behaviorCategorySlow, c_unitBehaviorChangeIncrease)
// L14306
TriggerAddEventUnitBehaviorChangeFromCategory(libGame_gt_CCRecognitionBlind, null, c_behaviorCategoryDebuffBlind, c_unitBehaviorChangeIncrease)
// L14350
TriggerAddEventUnitBehaviorChangeFromCategory(libGame_gt_CCRecognitionRoot, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeCreate)
// L14351
TriggerAddEventUnitBehaviorChangeFromCategory(libGame_gt_CCRecognitionRoot, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeRefresh)
// L14408
TriggerAddEventUnitBehaviorChangeFromCategory(libGame_gt_CCRecognitionStun, null, c_behaviorCategoryStun, c_unitBehaviorChangeCreate)
// L14409
TriggerAddEventUnitBehaviorChangeFromCategory(libGame_gt_CCRecognitionStun, null, c_behaviorCategoryStun, c_unitBehaviorChangeRefresh)
// L14475
TriggerAddEventUnitBehaviorChangeFromCategory(libGame_gt_CCRecognitionTaunt, null, c_behaviorCategoryTaunt, c_unitBehaviorChangeCreate)
// L14525
TriggerAddEventUnitBehaviorChangeFromCategory(libGame_gt_CCRecognitionSilenced, null, c_behaviorCategoryDebuffSilence, c_unitBehaviorChangeCreate)
// L14526
TriggerAddEventUnitBehaviorChangeFromCategory(libGame_gt_CCRecognitionSilenced, null, c_behaviorCategoryDebuffSilence, c_unitBehaviorChangeRefresh)

# mods/heroesdata.stormmod

UILib.galaxy

// L11737
TriggerAddEventUnitBehaviorChangeFromCategory(libUIUI_gt_UIFloatingCombatTextShield, null, c_behaviorCategoryBuffTempMaxHealth, c_unitBehaviorChangeIncrease)
// L13164
TriggerAddEventUnitBehaviorChangeFromCategory(libUIUI_gt_UnitBehaviorStateActivatesInvulnerable, null, c_behaviorCategoryInvulnerable, c_unitBehaviorChangeActivate)
// L13207
TriggerAddEventUnitBehaviorChangeFromCategory(libUIUI_gt_UnitBehaviorStateActivatesUnstoppable, null, c_behaviorCategoryBuffUnstoppable, c_unitBehaviorChangeActivate)
// L13246
TriggerAddEventUnitBehaviorChangeFromCategory(libUIUI_gt_UnitBehaviorStateActivatesResistant, null, c_behaviorCategoryBuffResistant, c_unitBehaviorChangeActivate)
// L13285
TriggerAddEventUnitBehaviorChangeFromCategory(libUIUI_gt_UnitBehaviorStateActivatesVulnerable, null, c_behaviorCategoryDebuffVulnerable, c_unitBehaviorChangeActivate)
// L13333
TriggerAddEventUnitBehaviorChangeFromCategory(libUIUI_gt_UnitBehaviorStateActivatesDimmed, null, c_behaviorCategoryDebuffStasis, c_unitBehaviorChangeActivate)
// L13389
TriggerAddEventUnitBehaviorChangeFromCategory(libUIUI_gt_UnitBehaviorStateActivatesInvincible, null, c_behaviorCategoryProtected, c_unitBehaviorChangeActivate)
// L13432
TriggerAddEventUnitBehaviorChangeFromCategory(libUIUI_gt_UnitBehaviorStateDeactivatesInvulnerable, null, c_behaviorCategoryInvulnerable, c_unitBehaviorChangeDeactivate)
// L13475
TriggerAddEventUnitBehaviorChangeFromCategory(libUIUI_gt_UnitBehaviorStateDeactivatesUnstoppable, null, c_behaviorCategoryBuffUnstoppable, c_unitBehaviorChangeDeactivate)
// L13514
TriggerAddEventUnitBehaviorChangeFromCategory(libUIUI_gt_UnitBehaviorStateDeactivatesResistant, null, c_behaviorCategoryBuffResistant, c_unitBehaviorChangeDeactivate)

# mods/heroesmapmods/battlegroundmapmods/volskayadata.stormmod

LibVolV.galaxy

// L258
TriggerAddEventUnitBehaviorChangeFromCategory(libVolV_gt_VehiclesGunnerStasisForwarding, null, c_behaviorCategoryDebuffStasis, c_unitBehaviorChangeCreate)
// L259
TriggerAddEventUnitBehaviorChangeFromCategory(libVolV_gt_VehiclesGunnerStasisForwarding, null, c_behaviorCategoryTimeStop, c_unitBehaviorChangeCreate)

# mods/heromods/alarak.stormmod

LibHALA.galaxy

// L670
TriggerAddEventUnitBehaviorChangeFromCategory(libHALA_gt_HeroAlarakRiteofRakShirTargetDies, null, c_behaviorCategorySpecialDeathState, c_unitBehaviorChangeCreate)

# mods/heromods/amazon.stormmod

LibHAMA.galaxy

// L266
TriggerAddEventUnitBehaviorChangeFromCategory(libHAMA_gt_HeroAmazonInnerLightCheckforCC, null, c_behaviorCategoryStun, c_unitBehaviorChangeCreate)
// L267
TriggerAddEventUnitBehaviorChangeFromCategory(libHAMA_gt_HeroAmazonInnerLightCheckforCC, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeCreate)

# mods/heromods/ana.stormmod

LibHANA.galaxy

// L187
TriggerAddEventUnitBehaviorChangeFromCategory(libHANA_gt_CCRecognitionSleep, null, c_behaviorCategorySleeping, c_unitBehaviorChangeCreate)
// L188
TriggerAddEventUnitBehaviorChangeFromCategory(libHANA_gt_CCRecognitionSleep, null, c_behaviorCategorySleeping, c_unitBehaviorChangeRefresh)

# mods/heromods/chogall.stormmod

LibHCHO.galaxy

// L481
TriggerAddEventUnitBehaviorChangeFromCategory(libHCHO_gt_HeroGallShoveRootOn, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeCreate)
// L482
TriggerAddEventUnitBehaviorChangeFromCategory(libHCHO_gt_HeroGallShoveRootOn, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeRefresh)
// L515
TriggerAddEventUnitBehaviorChangeFromCategory(libHCHO_gt_HeroGallShoveRootOff, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeDeactivate)
// L1091
TriggerAddEventUnitBehaviorChangeFromCategory(libHCHO_gt_SurgingFistRootsOnMonitor, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeActivate)
// L1092
TriggerAddEventUnitBehaviorChangeFromCategory(libHCHO_gt_SurgingFistRootsOnMonitor, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeRefresh)
// L1134
TriggerAddEventUnitBehaviorChangeFromCategory(libHCHO_gt_SurgingFistRootsOffMonitor, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeDeactivate)
// L2012
TriggerAddEventUnitBehaviorChangeFromCategory(libHCHO_gt_CCRecognitionRoot, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeCreate)
// L2013
TriggerAddEventUnitBehaviorChangeFromCategory(libHCHO_gt_CCRecognitionRoot, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeRefresh)
// L2300
TriggerAddEventUnitBehaviorChangeFromCategory(libHCHO_gt_HeroChogallGallStunnedorSilencedStop, null, c_behaviorCategoryStun, c_unitBehaviorChangeDeactivate)
// L2301
TriggerAddEventUnitBehaviorChangeFromCategory(libHCHO_gt_HeroChogallGallStunnedorSilencedStop, null, c_behaviorCategoryDebuffStasis, c_unitBehaviorChangeDeactivate)

# mods/heromods/dva.stormmod

LibHDVA.galaxy

// L1540
TriggerAddEventUnitBehaviorChangeFromCategory(libHDVA_gt_HeroDVaHoldFireControllerHoldFireApply, null, c_behaviorCategoryFear, c_unitBehaviorChangeCreate)
// L1592
TriggerAddEventUnitBehaviorChangeFromCategory(libHDVA_gt_HeroDVaHoldFireControllerHoldFireRemove, null, c_behaviorCategoryFear, c_unitBehaviorChangeDestroy)

# mods/heromods/imperius.stormmod

LibHIMP.galaxy

// L209
TriggerAddEventUnitBehaviorChangeFromCategory(libHIMP_gt_HeroImperiusCelestialChargeTimeStopHandler, null, c_behaviorCategoryTimeStop, c_unitBehaviorChangeCreate)

# mods/heromods/lucio.stormmod

LibHLUC.galaxy

// L546
TriggerAddEventUnitBehaviorChangeFromCategory(libHLUC_gt_HeroLucioBackInTheMix, null, c_behaviorCategoryStun, c_unitBehaviorChangeCreate)
// L547
TriggerAddEventUnitBehaviorChangeFromCategory(libHLUC_gt_HeroLucioBackInTheMix, null, c_behaviorCategoryStun, c_unitBehaviorChangeRefresh)
// L548
TriggerAddEventUnitBehaviorChangeFromCategory(libHLUC_gt_HeroLucioBackInTheMix, null, c_behaviorCategoryTimeStop, c_unitBehaviorChangeCreate)
// L549
TriggerAddEventUnitBehaviorChangeFromCategory(libHLUC_gt_HeroLucioBackInTheMix, null, c_behaviorCategoryTimeStop, c_unitBehaviorChangeRefresh)
// L550
TriggerAddEventUnitBehaviorChangeFromCategory(libHLUC_gt_HeroLucioBackInTheMix, null, c_behaviorCategoryDebuffSilence, c_unitBehaviorChangeCreate)
// L551
TriggerAddEventUnitBehaviorChangeFromCategory(libHLUC_gt_HeroLucioBackInTheMix, null, c_behaviorCategoryDebuffSilence, c_unitBehaviorChangeRefresh)
// L593
TriggerAddEventUnitBehaviorChangeFromCategory(libHLUC_gt_HeroLucioCantStopWontStop, null, c_behaviorCategorySlow, c_unitBehaviorChangeCreate)
// L594
TriggerAddEventUnitBehaviorChangeFromCategory(libHLUC_gt_HeroLucioCantStopWontStop, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeCreate)

# mods/heromods/medivh.stormmod

LibHMDV.galaxy

// L236
TriggerAddEventUnitBehaviorChangeFromCategory(libHMDV_gt_HeroMedivhRavenFamiliarPostSpawnCloak, null, c_behaviorCategoryTemporaryCloak, c_unitBehaviorChangeAny)
// L237
TriggerAddEventUnitBehaviorChangeFromCategory(libHMDV_gt_HeroMedivhRavenFamiliarPostSpawnCloak, null, c_behaviorCategoryPersistentCloak, c_unitBehaviorChangeAny)
// L238
TriggerAddEventUnitBehaviorChangeFromCategory(libHMDV_gt_HeroMedivhRavenFamiliarPostSpawnCloak, null, c_behaviorCategoryUnrevealableCloak, c_unitBehaviorChangeAny)

# mods/heromods/stukov.stormmod

LibHSTU.galaxy

// L107
TriggerAddEventUnitBehaviorChangeFromCategory(libHSTU_gt_StukovSuperstrainHealonStun, null, c_behaviorCategoryStun, c_unitBehaviorChangeCreate)
// L108
TriggerAddEventUnitBehaviorChangeFromCategory(libHSTU_gt_StukovSuperstrainHealonStun, null, c_behaviorCategoryDebuffRoot, c_unitBehaviorChangeCreate)

# mods/heromods/thefirelords.stormmod

LibHMaj.galaxy

// L904
TriggerAddEventUnitBehaviorChangeFromCategory(libHMaj_gt_HeroRagnarosEmpowerSulfurasResilientFlame, null, c_behaviorCategoryStun, c_unitBehaviorChangeCreate)

# mods/heromods/zarya.stormmod

LibHZAR.galaxy

// L1175
TriggerAddEventUnitBehaviorChangeFromCategory(libHZAR_gt_HeroZaryaHeroGainsAttackSpeedBuff, null, c_behaviorCategoryBuffAutoattackDPS, c_unitBehaviorChangeAny)
// L1176
TriggerAddEventUnitBehaviorChangeFromCategory(libHZAR_gt_HeroZaryaHeroGainsAttackSpeedBuff, null, c_behaviorCategoryDebuffAutoattackDPS, c_unitBehaviorChangeAny)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L13829
TriggerAddEventUnitBehaviorChangeFromCategory(libCOMI_gt_AttackFastBuffHack, null, c_unitBehaviorFlagFast, c_unitBehaviorChangeIncrease)
// L13830
TriggerAddEventUnitBehaviorChangeFromCategory(libCOMI_gt_AttackFastBuffHack, null, c_unitBehaviorFlagFast, c_unitBehaviorChangeDecrease)
// L13966
TriggerAddEventUnitBehaviorChangeFromCategory(libCOMI_gt_ConjoinedVitalRegenOnOff, null, c_unitBehaviorFlagUser13, c_unitBehaviorChangeIncrease)
// L13967
TriggerAddEventUnitBehaviorChangeFromCategory(libCOMI_gt_ConjoinedVitalRegenOnOff, null, c_unitBehaviorFlagUser13, c_unitBehaviorChangeDecrease)
// L15032
TriggerAddEventUnitBehaviorChangeFromCategory(libCOMI_gt_BehaviorPermanentlyChangesOwner, null, c_unitBehaviorFlagUser8, c_unitBehaviorChangeCreate)
// L15033
TriggerAddEventUnitBehaviorChangeFromCategory(libCOMI_gt_BehaviorPermanentlyChangesOwner, null, c_unitBehaviorFlagUser8, c_unitBehaviorChangeRefresh)