aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeleqraph <nyrdeveloper@gmail.com>2022-01-22 12:22:55 +0100
committerGitHub <noreply@github.com>2022-01-22 12:22:55 +0100
commit2fd4ce9fb9da7b8117d3f9df5c8f83889161fec3 (patch)
treebb2998efa6faa748cc3dfa27800503d6bbf3e159
parente8368ed2ebc7805516e309f13a90c1eeb3df5325 (diff)
Core/Units: Named UNIT_FLAG2_UNTARGETABLE_BY_CLIENT and renamed CREATURE_DIFFICULTYFLAGS_5_CANNOT_SWITCH_TARGETS to CREATURE_DIFFICULTYFLAGS_5_UNTARGETABLE_BY_CLIENT (#27637)
-rw-r--r--src/server/game/Entities/Creature/CreatureData.h2
-rw-r--r--src/server/game/Entities/Unit/UnitDefines.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Entities/Creature/CreatureData.h b/src/server/game/Entities/Creature/CreatureData.h
index d9c4fa8ee71..96f97cbaf9e 100644
--- a/src/server/game/Entities/Creature/CreatureData.h
+++ b/src/server/game/Entities/Creature/CreatureData.h
@@ -178,7 +178,7 @@ enum CreatureDifficultyFlags4
enum CreatureDifficultyFlags5
{
- CREATURE_DIFFICULTYFLAGS_5_CANNOT_SWITCH_TARGETS = 0x00000001, // UnitFlags2 0x4000000
+ CREATURE_DIFFICULTYFLAGS_5_UNTARGETABLE_BY_CLIENT = 0x00000001, // UNIT_FLAG2_UNTARGETABLE_BY_CLIENT
CREATURE_DIFFICULTYFLAGS_5_UNK1 = 0x00000002,
CREATURE_DIFFICULTYFLAGS_5_UFLAG2_UNK30 = 0x00000004, // UnitFlags2 0x10000000
CREATURE_DIFFICULTYFLAGS_5_UNK2 = 0x00000008,
diff --git a/src/server/game/Entities/Unit/UnitDefines.h b/src/server/game/Entities/Unit/UnitDefines.h
index 5c245840111..dbe82b9e899 100644
--- a/src/server/game/Entities/Unit/UnitDefines.h
+++ b/src/server/game/Entities/Unit/UnitDefines.h
@@ -175,6 +175,7 @@ enum UnitFlags2 : uint32
UNIT_FLAG2_PLAY_DEATH_ANIM = 0x00020000, // Plays special death animation upon death
UNIT_FLAG2_ALLOW_CHEAT_SPELLS = 0x00040000, // Allows casting spells with AttributesEx7 & SPELL_ATTR7_IS_CHEAT_SPELL
UNIT_FLAG2_NO_ACTIONS = 0x00800000,
+ UNIT_FLAG2_UNTARGETABLE_BY_CLIENT = 0x04000000 // Unit cannot be targeted by client (even in GM mode)
};
// Value masks for UNIT_FIELD_FLAGS_3