mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Fire PLAY_LAND event after replace check
Fix issue with cards preventing players from playing lands still firing PLAY_LAND, while the actual event is replaced.
This commit is contained in:
parent
0da4e10c49
commit
da54f97a9d
1 changed files with 1 additions and 1 deletions
|
@ -1098,10 +1098,10 @@ public abstract class PlayerImpl implements Player, Serializable {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.PLAY_LAND, card.getId(), card.getId(), playerId));
|
|
||||||
//20091005 - 305.1
|
//20091005 - 305.1
|
||||||
if (!game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.PLAY_LAND, card.getId(), card.getId(), playerId))) {
|
if (!game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.PLAY_LAND, card.getId(), card.getId(), playerId))) {
|
||||||
// int bookmark = game.bookmarkState();
|
// 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)) {
|
if (moveCards(card, Zone.BATTLEFIELD, playLandAbility, game, false, false, false, null)) {
|
||||||
landsPlayed++;
|
landsPlayed++;
|
||||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.LAND_PLAYED, card.getId(), card.getId(), playerId));
|
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.LAND_PLAYED, card.getId(), card.getId(), playerId));
|
||||||
|
|
Loading…
Reference in a new issue