mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 04:12:40 +01:00
correctly apply npc pvp flags (#27974)
(cherry picked from commit 2237926cec)
This commit is contained in:
@@ -2668,7 +2668,7 @@ bool Creature::LoadCreaturesAddon()
|
||||
// 3 ShapeshiftForm Must be determined/set by shapeshift spell/aura
|
||||
|
||||
SetSheath(SheathState(cainfo->bytes2 & 0xFF));
|
||||
ReplaceAllPvpFlags(UNIT_BYTE2_FLAG_NONE);
|
||||
ReplaceAllPvpFlags(UnitPVPStateFlags((cainfo->bytes2 >> 8) & 0xFF));
|
||||
ReplaceAllPetFlags(UNIT_PET_FLAG_NONE);
|
||||
SetShapeshiftForm(FORM_NONE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user