mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Merge pull request #16410 from sirikfoll/Strand
Core/Achievement Fix Achievement Defense of the Ancients
This commit is contained in:
@@ -389,6 +389,8 @@ void BattlegroundSA::PostUpdateImpl(uint32 diff)
|
|||||||
{
|
{
|
||||||
if (TotalTime >= BG_SA_ROUNDLENGTH)
|
if (TotalTime >= BG_SA_ROUNDLENGTH)
|
||||||
{
|
{
|
||||||
|
CastSpellOnTeam(SPELL_END_OF_ROUND, ALLIANCE);
|
||||||
|
CastSpellOnTeam(SPELL_END_OF_ROUND, HORDE);
|
||||||
RoundScores[0].winner = Attackers;
|
RoundScores[0].winner = Attackers;
|
||||||
RoundScores[0].time = BG_SA_ROUNDLENGTH;
|
RoundScores[0].time = BG_SA_ROUNDLENGTH;
|
||||||
TotalTime = 0;
|
TotalTime = 0;
|
||||||
@@ -401,8 +403,6 @@ void BattlegroundSA::PostUpdateImpl(uint32 diff)
|
|||||||
ToggleTimer();
|
ToggleTimer();
|
||||||
ResetObjs();
|
ResetObjs();
|
||||||
GetBgMap()->UpdateAreaDependentAuras();
|
GetBgMap()->UpdateAreaDependentAuras();
|
||||||
CastSpellOnTeam(SPELL_END_OF_ROUND, ALLIANCE);
|
|
||||||
CastSpellOnTeam(SPELL_END_OF_ROUND, HORDE);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -410,6 +410,8 @@ void BattlegroundSA::PostUpdateImpl(uint32 diff)
|
|||||||
{
|
{
|
||||||
if (TotalTime >= EndRoundTimer)
|
if (TotalTime >= EndRoundTimer)
|
||||||
{
|
{
|
||||||
|
CastSpellOnTeam(SPELL_END_OF_ROUND, ALLIANCE);
|
||||||
|
CastSpellOnTeam(SPELL_END_OF_ROUND, HORDE);
|
||||||
RoundScores[1].time = BG_SA_ROUNDLENGTH;
|
RoundScores[1].time = BG_SA_ROUNDLENGTH;
|
||||||
RoundScores[1].winner = (Attackers == TEAM_ALLIANCE) ? TEAM_HORDE : TEAM_ALLIANCE;
|
RoundScores[1].winner = (Attackers == TEAM_ALLIANCE) ? TEAM_HORDE : TEAM_ALLIANCE;
|
||||||
if (RoundScores[0].time == RoundScores[1].time)
|
if (RoundScores[0].time == RoundScores[1].time)
|
||||||
|
|||||||
Reference in New Issue
Block a user