mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Fire PLAY_LAND event when a player plays a land, fixed UphillBattle PlayCreatureLandWatcher
Fire a PLAY_LAND event when a player plays a land. This is necessary for the PlayCreatureLandWatcher to know if a land was played, or put into thte battlefield (make distinction between playing Dryad Arbor and using Sneak Attack to put it on the battlefield)
This commit is contained in:
parent
94de3b405b
commit
0b8e8c0007
2 changed files with 8 additions and 6 deletions
|
|
@ -1097,6 +1097,8 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
if (!ignoreTiming && !playLandAbility.canActivate(this.playerId, game)) {
|
||||
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();
|
||||
|
|
@ -1113,7 +1115,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
// what makes no real sense. So it makes no sense to generally do a restorState here.
|
||||
// restoreState(bookmark, card.getName(), game);
|
||||
}
|
||||
// if the to play the land is replaced (e.g. Kjeldoran Outpos and don't sacrificing a Plains) it's a valid satte so returning true here
|
||||
// if the to play the land is replaced (e.g. Kjeldoran Outpos and don't sacrificing a Plains) it's a valid state so returning true here
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue