mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* Angel of Jubilation - Fixed possible Null Pointer Exception in Player.canPayLifeCost method (fixed #7019).
This commit is contained in:
parent
8419b67caa
commit
cd5c1c282c
4 changed files with 51 additions and 69 deletions
|
|
@ -3383,7 +3383,12 @@ public class TestPlayer implements Player {
|
|||
public boolean canPayLifeCost(Ability ability) {
|
||||
return computerPlayer.canPayLifeCost(ability);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean getCanPayLifeCost() {
|
||||
return computerPlayer.getCanPayLifeCost();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCanPayLifeCost(boolean canPayLifeCost) {
|
||||
computerPlayer.setCanPayLifeCost(canPayLifeCost);
|
||||
|
|
|
|||
|
|
@ -179,7 +179,12 @@ public class PlayerStub implements Player {
|
|||
public void setCanPayLifeCost(boolean canPayLifeCost) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean getCanPayLifeCost() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPayLifeCost(Ability ability) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue