Core/Achievements: Added also check for player's team. Only defenders should get this achievement
This commit is contained in:
@@ -247,6 +247,9 @@ class achievement_bg_sa_defense_of_ancients : public AchievementCriteriaScript
|
||||
if (!battleground)
|
||||
return false;
|
||||
|
||||
if (player->GetTeamId() == static_cast<BattlegroundSA*>(battleground)->Attackers)
|
||||
return false;
|
||||
|
||||
if (!static_cast<BattlegroundSA*>(battleground)->gateDestroyed);
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user