mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Wintergrasp: Working tenacity calculation, by RammboNr5
--HG-- branch : trunk
This commit is contained in:
@@ -1255,9 +1255,9 @@ void OPvPWintergrasp::UpdateTenacityStack()
|
||||
if (allianceNum && hordeNum)
|
||||
{
|
||||
if (allianceNum < hordeNum)
|
||||
newStack = int32((hordeNum / (float)allianceNum - 1)*4); // positive, should cast on alliance
|
||||
newStack = int32(((float)hordeNum / (float)allianceNum - 1)*4); // positive, should cast on alliance
|
||||
else if (allianceNum > hordeNum)
|
||||
newStack = int32((1 - allianceNum / (float)hordeNum)*4); // negative, should cast on horde
|
||||
newStack = int32((1 - (float)allianceNum / (float)hordeNum)*4); // negative, should cast on horde
|
||||
}
|
||||
|
||||
if (newStack == m_tenacityStack)
|
||||
|
||||
Reference in New Issue
Block a user