Fixed a bug of Chemister's Trick with overload that affected creatures not forced to attack.

This commit is contained in:
LevelX2 2012-12-28 23:55:47 +01:00
parent dfc1854f9e
commit e269a63e04
2 changed files with 8 additions and 7 deletions

View file

@ -106,7 +106,7 @@ class ChemistersTrickEffect extends OneShotEffect<ChemistersTrickEffect> {
@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);