mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Fixed also Training Grounds and Copperhorn Scout.
This commit is contained in:
parent
954052b64e
commit
8d12b34c6d
2 changed files with 4 additions and 4 deletions
|
@ -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 ) {
|
||||
|
|
|
@ -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()) ) {
|
||||
|
|
Loading…
Reference in a new issue