From 71ecd754ce9ba2d09765504a602d1edf23725d5d Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 27 Aug 2023 17:46:22 +0200 Subject: [PATCH] build fix --- src/server/game/Entities/Creature/Creature.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/server/game/Entities/Creature/Creature.h b/src/server/game/Entities/Creature/Creature.h index 0ded630edb..573014fc33 100644 --- a/src/server/game/Entities/Creature/Creature.h +++ b/src/server/game/Entities/Creature/Creature.h @@ -126,13 +126,7 @@ class TC_GAME_API Creature : public Unit, public GridObject, public Ma using Unit::SetImmuneToNPC; void SetImmuneToNPC(bool apply) override { Unit::SetImmuneToNPC(apply, HasReactState(REACT_PASSIVE)); } - void SetUnkillable(bool unkillable) - { - if (unkillable) - _staticFlags |= CREATURE_STATIC_FLAG_UNKILLABLE; - else - _staticFlags &= ~CREATURE_STATIC_FLAG_UNKILLABLE; - } + void SetUnkillable(bool unkillable) { _staticFlags.ApplyFlag(CREATURE_STATIC_FLAG_UNKILLABLE, unkillable);} /// @todo Rename these properly bool isCanInteractWithBattleMaster(Player* player, bool msg) const;