Prevent Racial leaders PvP dropping due to faction rules

This commit is contained in:
Olion 2017-06-25 01:02:18 +03:00 committed by Antz
parent 09f2a1f64d
commit ef7fa1acde

View File

@ -456,6 +456,7 @@ bool Creature::UpdateEntry(uint32 Entry, Team team, const CreatureData* data /*=
if (factionTemplate->factionFlags & FACTION_TEMPLATE_FLAG_PVP) if (factionTemplate->factionFlags & FACTION_TEMPLATE_FLAG_PVP)
SetPvP(true); SetPvP(true);
else else
if (!IsRacialLeader())
SetPvP(false); SetPvP(false);
} }