mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Goad all ability: fixed game error in some use cases (NPE fix)
This commit is contained in:
parent
c96805a307
commit
22552ede47
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@ public class GoadAllEffect extends ContinuousEffectImpl {
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
if (this.affectedObjectsSet) {
|
if (this.affectedObjectsSet) {
|
||||||
this.affectedObjectList.removeIf(mor -> !mor.zoneCounterIsCurrent(game));
|
this.affectedObjectList.removeIf(mor -> !mor.zoneCounterIsCurrent(game)
|
||||||
|
|| mor.getPermanent(game) == null);
|
||||||
if (affectedObjectList.isEmpty()) {
|
if (affectedObjectList.isEmpty()) {
|
||||||
discard();
|
discard();
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue