added minimum level to pvp flag.

This commit is contained in:
Xackery committed 2018-02-26 09:33:15 -08:00
1 parent f3b2ac6c17
commit 008b17aaf2
3 files changed
+4 -1

No files matched your search

+2
View File
@@ -831,6 +831,8 @@ void Client::SetLevel(uint8 set_level, bool command)
SetHP(CalcMaxHP()); // Why not, lets give them a free heal
}
if (RuleI(World, PVPMinLevel) > 0 && level >= RuleI(World, PVPMinLevel) && m_pp.pvp == 0) SetPVP(true);
DoTributeUpdate();
SendHPUpdate();
SetMana(CalcMaxMana());