Fix some leaderboards not cleaning up after themselves

This commit is contained in:
AlexTheCoder 2017-05-11 15:53:58 -04:00
parent aa898d74da
commit 7f240bb5a4

View File

@ -695,6 +695,10 @@ public class CastleAssault extends TeamGame
Manager.GetDamage().SetEnabled(true);
Manager.GetExplosion().setEnabled(true);
Manager.GetCreature().SetDisableCustomDrops(false);
}
if (event.GetState() == GameState.Dead)
{
Managers.get(LeaderboardManager.class).unregisterLeaderboard("TOP_CASTLEASSAULT_DAILY_WINS");
Managers.get(LeaderboardManager.class).unregisterLeaderboard("TOP_CASTLEASSAULT_DAILY_KILLS");
Managers.get(LeaderboardManager.class).unregisterLeaderboard("TOP_CASTLEASSAULT_WINS");