mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
fix
This commit is contained in:
parent
737b4bbe66
commit
b125863e2d
1 changed files with 6 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue