From e6a6dceaee7bfb9e65a8652277b15ac9a059dc03 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sun, 3 Jul 2022 21:28:36 +0200 Subject: [PATCH] =?UTF-8?q?fix(Core/Combat):=20Removed=20`UNIT=5FFLAG=5FIM?= =?UTF-8?q?MUNE=5FTO=5FPC`=20when=20entering=20comb=E2=80=A6=20(#12288)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(Core/Combat): Removed `UNIT_FLAG_IMMUNE_TO_PC` when entering combat with player. Fixes #12211 Fixes #12214 Fixes #12219 Fixes #12212 --- src/server/game/Entities/Unit/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 317f747db..07e9c6288 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -13163,7 +13163,7 @@ void Unit::SetInCombatState(bool PvP, Unit* enemy, uint32 duration) // xinef: if we somehow engage in combat (scripts, dunno) with player, remove this flag so he can fight back if (GetTypeId() == TYPEID_UNIT && enemy && IsImmuneToPC() && enemy->GetCharmerOrOwnerPlayerOrPlayerItself()) - SetImmuneToPC(true); // unit has engaged in combat, remove immunity so players can fight back + SetImmuneToPC(false); // unit has engaged in combat, remove immunity so players can fight back if (IsInCombat()) return;