Core/Units: Named UNIT_FLAG2_UNTARGETABLE_BY_CLIENT and renamed CREATURE_DIFFICULTYFLAGS_5_CANNOT_SWITCH_TARGETS to CREATURE_DIFFICULTYFLAGS_5_UNTARGETABLE_BY_CLIENT (#27637)

This commit is contained in:
Teleqraph
2022-01-22 12:22:55 +01:00
committed by GitHub
parent e8368ed2eb
commit 2fd4ce9fb9
2 changed files with 2 additions and 1 deletions

View File

@@ -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,

View File

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