Merge pull request #4617 from delftswa2018/hotfix/play-land-event

Fire PLAY_LAND event only after replace check
This commit is contained in:
LevelX2 2018-03-13 22:14:05 +01:00 committed by GitHub
commit d101dc5a0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1098,10 +1098,10 @@ public abstract class PlayerImpl implements Player, Serializable {
return false;
}
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.PLAY_LAND, card.getId(), card.getId(), playerId));
//20091005 - 305.1
if (!game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.PLAY_LAND, card.getId(), card.getId(), playerId))) {
// int bookmark = game.bookmarkState();
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.PLAY_LAND, card.getId(), card.getId(), playerId));
if (moveCards(card, Zone.BATTLEFIELD, playLandAbility, game, false, false, false, null)) {
landsPlayed++;
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.LAND_PLAYED, card.getId(), card.getId(), playerId));