This commit is contained in:
Loki 2012-06-22 12:05:51 +12:00
parent 737b4bbe66
commit b125863e2d

View file

@ -86,7 +86,11 @@ class ArbiterOfKnollridgeEffect extends OneShotEffect<ArbiterOfKnollridgeEffect>
@Override
public boolean apply(Game game, Ability source) {
int maxLife = 0;
for (UUID pid : game.getPlayerList()) {
Player controller = game.getPlayer(source.getControllerId());
if (controller == null)
return false;
for (UUID pid : controller.getInRange()) {
Player p = game.getPlayer(pid);
if (p != null) {
if (maxLife < p.getLife()) {
@ -94,7 +98,7 @@ class ArbiterOfKnollridgeEffect extends OneShotEffect<ArbiterOfKnollridgeEffect>
}
}
}
for (UUID pid : game.getPlayerList()) {
for (UUID pid : controller.getInRange()) {
Player p = game.getPlayer(pid);
if (p != null) {
if (maxLife > p.getLife()) {