mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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
|
||||
public boolean apply(Game game, Ability source) {
|
||||
if (this.affectedObjectsSet) {
|
||||
this.affectedObjectList.removeIf(mor -> !mor.zoneCounterIsCurrent(game));
|
||||
this.affectedObjectList.removeIf(mor -> !mor.zoneCounterIsCurrent(game)
|
||||
|| mor.getPermanent(game) == null);
|
||||
if (affectedObjectList.isEmpty()) {
|
||||
discard();
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue