* Fixed a problem with "put into the graveyard from anywhere triggers" that checked wrongly the state of the source object on the battlefield if went to graveyard itself.

This commit is contained in:
LevelX2 2015-12-24 17:58:04 +01:00
parent d40afd9ef5
commit eb0ae55257
16 changed files with 229 additions and 128 deletions

View file

@ -19,6 +19,34 @@ public class PutIntoGraveFromAnywhereSourceTriggeredAbility extends ZoneChangeTr
public PutIntoGraveFromAnywhereSourceTriggeredAbility(final PutIntoGraveFromAnywhereSourceTriggeredAbility ability) {
super(ability);
}
//
// /**
// *
// * There are two types of triggers that involve the graveyard: dies triggers
// * (which are a subset of leave-the-battlefield triggers) and put into the
// * graveyard from anywhere triggers.
// *
// * The former triggers trigger based on the game state prior to the move
// * where the Kozilek permanent is face down and has no abilities. The latter
// * triggers trigger from the game state after the move where the Kozilek
// * card is itself and has the ability.
// *
// * The trigger on Kozilek will trigger and he and the graveyard will be
// * shuffled into the library.
// * http://www.mtgsalvation.com/forums/magic-fundamentals/magic-rulings/magic-rulings-archives/537065-ixidron-and-kozilek
// *
// * @param game
// * @param source
// * @param event
// * @return
// */
// @Override
// public boolean isInUseableZone(Game game, MageObject source, GameEvent event) {
// if (game.getState().getZone(source.getId()).equals(Zone.GRAVEYARD)) {
// return this.hasSourceObjectAbility(game, source, event);
// }
// return false;
// }
@Override
public PutIntoGraveFromAnywhereSourceTriggeredAbility copy() {