fix wardSliver

This commit is contained in:
igoudt 2017-06-19 01:57:28 +02:00
parent d63b241d54
commit 940b44ef81

View file

@ -27,7 +27,6 @@
*/
package mage.cards.w;
import java.util.UUID;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.Ability;
@ -46,6 +45,8 @@ import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.game.Game;
import mage.game.permanent.Permanent;
import java.util.UUID;
/**
*
* @author cbt33, noxx (Riders of Gavony)
@ -119,7 +120,7 @@ class WardSliverGainAbilityControlledEffect extends ContinuousEffectImpl {
}
}
if (protectionFilter != null) {
for (Permanent perm: game.getBattlefield().getAllActivePermanents(filter, source.getControllerId(), game)) {
for (Permanent perm: game.getBattlefield().getAllActivePermanents(filter, game)) {
perm.addAbility(new ProtectionAbility(protectionFilter), source.getSourceId(), game);
}
return true;