1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-03-31 01:07:39 -09:00

fixed test failures

This commit is contained in:
Evan Kranzler 2022-04-07 20:40:35 -04:00
parent 9fbf5f841f
commit 7f6fc11411
2 changed files with 4 additions and 2 deletions
Mage/src/main/java/mage/abilities/effects/common/continuous

View file

@ -92,7 +92,8 @@ public class BoostControlledEffect extends ContinuousEffectImpl {
super.init(source, game);
if (this.affectedObjectsSet) {
for (Permanent perm : game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source, game)) {
if (!(excludeSource && perm.getId().equals(source.getSourceId()))) {
if (perm.isControlledBy(source.getControllerId())
&& !(excludeSource && perm.getId().equals(source.getSourceId()))) {
affectedObjectList.add(new MageObjectReference(perm, game));
}
}

View file

@ -68,7 +68,8 @@ public class GainAbilityControlledEffect extends ContinuousEffectImpl {
super.init(source, game);
if (this.affectedObjectsSet) {
for (Permanent perm : game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source, game)) {
if (!(excludeSource && perm.getId().equals(source.getSourceId()))) {
if (perm.isControlledBy(source.getControllerId())
&& !(excludeSource && perm.getId().equals(source.getSourceId()))) {
affectedObjectList.add(new MageObjectReference(perm, game));
}
}