correctly apply npc pvp flags
Port From (https://github.com/TrinityCore/TrinityCore/commit/45bbbd5acd8b68b98860283d70d17b6ab527dcdf)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user