* Shifting Shadows - Fixed not proper handling of gained triggered abilities during step resolution of Shifting Shadows effect (fixes #6571).

This commit is contained in:
LevelX2 2020-06-03 15:07:52 +02:00
parent f65f4a4344
commit 07386cce8d
6 changed files with 316 additions and 7 deletions

View file

@ -91,9 +91,9 @@ public class CommanderReplacementEffect extends ReplacementEffectImpl {
public boolean applies(GameEvent event, Ability source, Game game) {
ZoneChangeEvent zEvent = (ZoneChangeEvent) event;
if (!game.isSimulation() && commanderId.equals(zEvent.getTargetId())) {
//System.out.println("applies " + game.getTurnNum() + ": " + game.getObject(event.getTargetId()).getName() + ": " + zEvent.getFromZone() + " -> " + zEvent.getToZone() + "; " + game.getObject(zEvent.getSourceId()));
}
// if (!game.isSimulation() && commanderId.equals(zEvent.getTargetId())) {
// System.out.println("applies " + game.getTurnNum() + ": " + game.getObject(event.getTargetId()).getName() + ": " + zEvent.getFromZone() + " -> " + zEvent.getToZone() + "; " + game.getObject(zEvent.getSourceId()));
// }
if (zEvent.getToZone().equals(Zone.HAND) && !alsoHand) {
return false;