mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
GameAction fix NPE for ScryBottom
This commit is contained in:
@@ -2343,7 +2343,7 @@ public class GameAction {
|
|||||||
// set up triggers (but not actually do them until later)
|
// set up triggers (but not actually do them until later)
|
||||||
final Map<AbilityKey, Object> runParams = AbilityKey.mapFromPlayer(p);
|
final Map<AbilityKey, Object> runParams = AbilityKey.mapFromPlayer(p);
|
||||||
runParams.put(AbilityKey.ScryNum, numLookedAt);
|
runParams.put(AbilityKey.ScryNum, numLookedAt);
|
||||||
runParams.put(AbilityKey.ScryBottom, toBottom.size());
|
runParams.put(AbilityKey.ScryBottom, toBottom == null ? 0 : toBottom.size());
|
||||||
game.getTriggerHandler().runTrigger(TriggerType.Scry, runParams, false);
|
game.getTriggerHandler().runTrigger(TriggerType.Scry, runParams, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user