From e269a63e04c6eb568807240896df4813ccd52268 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Fri, 28 Dec 2012 23:55:47 +0100 Subject: [PATCH] Fixed a bug of Chemister's Trick with overload that affected creatures not forced to attack. --- .../mage/sets/returntoravnica/ChemistersTrick.java | 2 +- .../effects/common/AttacksIfAbleTargetEffect.java | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Mage.Sets/src/mage/sets/returntoravnica/ChemistersTrick.java b/Mage.Sets/src/mage/sets/returntoravnica/ChemistersTrick.java index bcc850365e..5465df9aff 100644 --- a/Mage.Sets/src/mage/sets/returntoravnica/ChemistersTrick.java +++ b/Mage.Sets/src/mage/sets/returntoravnica/ChemistersTrick.java @@ -106,7 +106,7 @@ class ChemistersTrickEffect extends OneShotEffect { @Override public boolean apply(Game game, Ability source) { - for (Permanent creature : game.getBattlefield().getAllActivePermanents(filter, game)) { + for (Permanent creature : game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)) { AttacksIfAbleTargetEffect effect = new AttacksIfAbleTargetEffect(Duration.EndOfTurn); effect.setTargetPointer(new FixedTarget(creature.getId())); game.addEffect(effect, source); diff --git a/Mage/src/mage/abilities/effects/common/AttacksIfAbleTargetEffect.java b/Mage/src/mage/abilities/effects/common/AttacksIfAbleTargetEffect.java index 4d7f91e231..6af6b06d8d 100644 --- a/Mage/src/mage/abilities/effects/common/AttacksIfAbleTargetEffect.java +++ b/Mage/src/mage/abilities/effects/common/AttacksIfAbleTargetEffect.java @@ -56,8 +56,7 @@ public class AttacksIfAbleTargetEffect extends RequirementEffect