Skip to content

Commit

Permalink
Fix Creature::ClearTemporaryFaction
Browse files Browse the repository at this point in the history
Idk when i did this
Closes cmangos/issues#3721
  • Loading branch information
killerwife committed Jun 3, 2024
1 parent 2709cf1 commit 65c4966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Entities/Creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2628,9 +2628,9 @@ void Creature::ClearTemporaryFaction()
if (m_temporaryFactionFlags & TEMPFACTION_TOGGLE_NON_ATTACKABLE && GetCreatureInfo()->UnitFlags & UNIT_FLAG_SPAWNING)
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SPAWNING);
if (m_temporaryFactionFlags & TEMPFACTION_TOGGLE_IMMUNE_TO_PLAYER && GetCreatureInfo()->UnitFlags & UNIT_FLAG_IMMUNE_TO_PLAYER)
SetImmuneToPlayer(false);
SetImmuneToPlayer(true);
if (m_temporaryFactionFlags & TEMPFACTION_TOGGLE_IMMUNE_TO_NPC && GetCreatureInfo()->UnitFlags & UNIT_FLAG_IMMUNE_TO_NPC)
SetImmuneToNPC(false);
SetImmuneToNPC(true);
if (m_temporaryFactionFlags & TEMPFACTION_TOGGLE_PACIFIED && GetCreatureInfo()->UnitFlags & UNIT_FLAG_PACIFIED)
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED);
if (m_temporaryFactionFlags & TEMPFACTION_TOGGLE_NOT_SELECTABLE && GetCreatureInfo()->UnitFlags & UNIT_FLAG_UNINTERACTIBLE)
Expand Down

0 comments on commit 65c4966

Please sign in to comment.