This commit is contained in:
Garbage Mule 2011-06-01 20:50:20 +02:00
parent 5e4d9b5624
commit cfe135e465
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -50,14 +50,14 @@ public class MASpawnThread implements Runnable
} }
public void run() public void run()
{ {
// Check if we need to grant more rewards with the recurrent waves. // Check if we need to grant more rewards with the recurrent waves.
for (Integer i : ArenaManager.everyWaveMap.keySet()) for (Integer i : ArenaManager.everyWaveMap.keySet())
{ {
if (wave % i != 0) if (wave % i != 0)
continue; continue;
for (Player p : playerList) for (Player p : ArenaManager.playerSet)
{ {
currentRewards = ArenaManager.rewardMap.get(p); currentRewards = ArenaManager.rewardMap.get(p);
reward = MAUtils.getRandomReward(ArenaManager.everyWaveMap.get(i)); reward = MAUtils.getRandomReward(ArenaManager.everyWaveMap.get(i));
@ -70,7 +70,7 @@ public class MASpawnThread implements Runnable
// Same deal, this time with the one-time waves. // Same deal, this time with the one-time waves.
if (ArenaManager.afterWaveMap.containsKey(wave)) if (ArenaManager.afterWaveMap.containsKey(wave))
{ {
for (Player p : playerList) for (Player p : ArenaManager.playerSet)
{ {
currentRewards = ArenaManager.rewardMap.get(p); currentRewards = ArenaManager.rewardMap.get(p);
reward = MAUtils.getRandomReward(ArenaManager.afterWaveMap.get(wave)); reward = MAUtils.getRandomReward(ArenaManager.afterWaveMap.get(wave));