mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +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
|
||||
public void watch(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.ENTERS_THE_BATTLEFIELD
|
||||
&& ((EntersTheBattlefieldEvent) event).getTarget().isLand(game)) {
|
||||
if (event.getType() == GameEvent.EventType.PLAY_LAND ||
|
||||
(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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue