mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
added minimum level to pvp flag.
This commit is contained in:
+1
-1
@@ -254,7 +254,7 @@ Client::Client(EQStreamInterface* ieqs)
|
||||
mercSlot = 0;
|
||||
InitializeMercInfo();
|
||||
SetMerc(0);
|
||||
|
||||
if (RuleI(World, PVPMinLevel) > 0 && level >= RuleI(World, PVPMinLevel) && m_pp.pvp == 0) SetPVP(true, false);
|
||||
logging_enabled = CLIENT_DEFAULT_LOGGING_ENABLED;
|
||||
|
||||
//for good measure:
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user