* removing double negative checks.

This commit is contained in:
LevelX2 2016-08-07 09:28:39 +02:00
parent f84040f4c0
commit 8ccb5d18ec
2 changed files with 3 additions and 4 deletions

View file

@ -28,7 +28,6 @@
package mage.sets.eighthedition;
import java.util.UUID;
import mage.ObjectColor;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
@ -95,7 +94,7 @@ class MurderousBetrayalCost extends CostImpl {
@Override
public boolean canPay(Ability ability, UUID sourceId, UUID controllerId, Game game) {
Player controller = game.getPlayer(controllerId);
return controller != null && !(controller.getLife() > 0 && !controller.canPayLifeCost());
return controller != null && (controller.getLife() < 1 || controller.canPayLifeCost());
}
@Override
@ -118,4 +117,4 @@ class MurderousBetrayalCost extends CostImpl {
public MurderousBetrayalCost copy() {
return new MurderousBetrayalCost(this);
}
}
}

View file

@ -84,7 +84,7 @@ class LurkingEvilCost extends CostImpl {
@Override
public boolean canPay(Ability ability, UUID sourceId, UUID controllerId, Game game) {
Player controller = game.getPlayer(controllerId);
return controller != null && !(controller.getLife() > 0 && !controller.canPayLifeCost());
return controller != null && (controller.getLife() < 1 || controller.canPayLifeCost());
}
@Override