mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
fix EmergenSequence not taking play land events into account
This commit is contained in:
parent
1e4f3524a9
commit
736e659e34
1 changed files with 3 additions and 2 deletions
|
@ -104,8 +104,9 @@ class EmergentSequenceWatcher extends Watcher {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void watch(GameEvent event, Game game) {
|
public void watch(GameEvent event, Game game) {
|
||||||
if (event.getType() == GameEvent.EventType.ENTERS_THE_BATTLEFIELD
|
if (event.getType() == GameEvent.EventType.PLAY_LAND ||
|
||||||
&& ((EntersTheBattlefieldEvent) event).getTarget().isLand(game)) {
|
(event.getType() == GameEvent.EventType.ENTERS_THE_BATTLEFIELD
|
||||||
|
&& ((EntersTheBattlefieldEvent) event).getTarget().isLand(game))) {
|
||||||
playerMap.compute(event.getPlayerId(), (u, i) -> i == null ? 1 : Integer.sum(i, 1));
|
playerMap.compute(event.getPlayerId(), (u, i) -> i == null ? 1 : Integer.sum(i, 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue