mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-10 03:00:28 +00:00
feat(Core/PvP): Outdoor PvP capture rate multiplier (#23902)
This commit is contained in:
@@ -673,11 +673,11 @@ bool OPvPCapturePointNA::Update(uint32 diff)
|
||||
m_RespawnTimer -= diff;
|
||||
|
||||
// get the difference of numbers
|
||||
float factDiff = ((float)_activePlayers[0].size() - (float)_activePlayers[1].size()) * diff / OUTDOORPVP_OBJECTIVE_UPDATE_INTERVAL;
|
||||
float factDiff = (((float)_activePlayers[0].size() - (float)_activePlayers[1].size()) * diff / OUTDOORPVP_OBJECTIVE_UPDATE_INTERVAL) * sWorld->getFloatConfig(CONFIG_OUTDOOR_PVP_CAPTURE_RATE);
|
||||
if (!factDiff)
|
||||
return false;
|
||||
|
||||
float maxDiff = _maxSpeed * diff;
|
||||
float maxDiff = _maxSpeed * diff * sWorld->getFloatConfig(CONFIG_OUTDOOR_PVP_CAPTURE_RATE);
|
||||
|
||||
if (factDiff < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user