fix(Core/DB): Fix Malygos not engaging due to IMMUNE_TO_PC spawn flag (#25121)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
blinkysc 2026-03-18 20:38:41 -05:00 committed by GitHub
parent a349fccf57
commit c87239f994
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View file

@ -0,0 +1,2 @@
-- Remove incorrect IMMUNE_TO_PC from Malygos spawn flags
UPDATE `creature` SET `unit_flags` = 0 WHERE `guid` = 132313 AND `id1` = 28859;

View file

@ -2758,10 +2758,6 @@ void Creature::AtEngage(Unit* target)
{
Unit::AtEngage(target);
// If we somehow engage in combat with a player while immune, remove immunity so they can fight back
if (target && IsImmuneToPC() && target->GetCharmerOrOwnerPlayerOrPlayerItself())
SetImmuneToPC(false);
if (!IsStandState())
SetStandState(UNIT_STAND_STATE_STAND);