correctly apply npc pvp flags

Port From (https://github.com/TrinityCore/TrinityCore/commit/45bbbd5acd8b68b98860283d70d17b6ab527dcdf)
This commit is contained in:
hondacrx
2022-06-15 18:21:44 -04:00
parent 8b976e7537
commit c26e78c902
+1 -1
View File
@@ -2395,7 +2395,7 @@ namespace Game.Entities
// 3 ShapeshiftForm Must be determined/set by shapeshift spell/aura
SetSheath((SheathState)(cainfo.bytes2 & 0xFF));
ReplaceAllPvpFlags(UnitPVPStateFlags.None);
ReplaceAllPvpFlags((UnitPVPStateFlags)((cainfo.bytes2 >> 8) & 0xFF));
ReplaceAllPetFlags(UnitPetFlags.None);
SetShapeshiftForm(ShapeShiftForm.None);
}