mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
* removing double negative checks.
This commit is contained in:
parent
f84040f4c0
commit
8ccb5d18ec
2 changed files with 3 additions and 4 deletions
|
@ -28,7 +28,6 @@
|
||||||
package mage.sets.eighthedition;
|
package mage.sets.eighthedition;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import mage.ObjectColor;
|
import mage.ObjectColor;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.SimpleActivatedAbility;
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
|
@ -95,7 +94,7 @@ class MurderousBetrayalCost extends CostImpl {
|
||||||
@Override
|
@Override
|
||||||
public boolean canPay(Ability ability, UUID sourceId, UUID controllerId, Game game) {
|
public boolean canPay(Ability ability, UUID sourceId, UUID controllerId, Game game) {
|
||||||
Player controller = game.getPlayer(controllerId);
|
Player controller = game.getPlayer(controllerId);
|
||||||
return controller != null && !(controller.getLife() > 0 && !controller.canPayLifeCost());
|
return controller != null && (controller.getLife() < 1 || controller.canPayLifeCost());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -118,4 +117,4 @@ class MurderousBetrayalCost extends CostImpl {
|
||||||
public MurderousBetrayalCost copy() {
|
public MurderousBetrayalCost copy() {
|
||||||
return new MurderousBetrayalCost(this);
|
return new MurderousBetrayalCost(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ class LurkingEvilCost extends CostImpl {
|
||||||
@Override
|
@Override
|
||||||
public boolean canPay(Ability ability, UUID sourceId, UUID controllerId, Game game) {
|
public boolean canPay(Ability ability, UUID sourceId, UUID controllerId, Game game) {
|
||||||
Player controller = game.getPlayer(controllerId);
|
Player controller = game.getPlayer(controllerId);
|
||||||
return controller != null && !(controller.getLife() > 0 && !controller.canPayLifeCost());
|
return controller != null && (controller.getLife() < 1 || controller.canPayLifeCost());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue