Fixed also Training Grounds and Copperhorn Scout.

This commit is contained in:
magenoxx 2011-11-24 11:12:07 +04:00
parent 954052b64e
commit 8d12b34c6d
2 changed files with 4 additions and 4 deletions

View file

@ -93,7 +93,7 @@ class TrainingGroundsCostReductionEffect extends ContinuousEffectImpl<TrainingGr
@Override
public boolean apply(Game game, Ability source) {
boolean applied = false;
List<Permanent> permanents = game.getBattlefield().getAllActivePermanents(filter);
List<Permanent> permanents = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game);
if ( permanents != null && !permanents.isEmpty() ) {
for ( Permanent permanent : permanents ) {

View file

@ -38,6 +38,7 @@ import mage.abilities.Ability;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.effects.OneShotEffect;
import mage.cards.CardImpl;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.common.FilterCreaturePermanent;
import mage.game.Game;
import mage.game.events.GameEvent;
@ -114,10 +115,9 @@ class CopperhornScoutUntapEffect extends OneShotEffect<CopperhornScoutUntapEffec
@Override
public boolean apply(Game game, Ability source) {
FilterCreaturePermanent filter = new FilterCreaturePermanent();
filter.getControllerId().add(source.getControllerId());
FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent();
List<Permanent> creatures = game.getBattlefield().getAllActivePermanents(filter);
List<Permanent> creatures = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game);
for ( Permanent creature : creatures ) {
if ( !creature.getId().equals(source.getSourceId()) ) {