mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
missed a filter setting
This commit is contained in:
parent
33a1b70693
commit
be1cf8dc24
1 changed files with 10 additions and 3 deletions
|
@ -14,7 +14,14 @@ import mage.filter.FilterStackObject;
|
|||
*/
|
||||
public class HexproofAbility extends SimpleStaticAbility {
|
||||
|
||||
private static final HexproofAbility fINSTANCE = new HexproofAbility();
|
||||
private static final HexproofAbility fINSTANCE;
|
||||
private static final FilterStackObject filter;
|
||||
|
||||
static {
|
||||
filter = new FilterStackObject("spells or abilities your opponents control");
|
||||
filter.setTargetController(Constants.TargetController.OPPONENT);
|
||||
fINSTANCE = new HexproofAbility();
|
||||
}
|
||||
|
||||
private Object readResolve() throws ObjectStreamException {
|
||||
return fINSTANCE;
|
||||
|
@ -24,8 +31,8 @@ public class HexproofAbility extends SimpleStaticAbility {
|
|||
return fINSTANCE;
|
||||
}
|
||||
|
||||
private HexproofAbility() {
|
||||
super(Constants.Zone.BATTLEFIELD, new CantTargetSourceEffect(new FilterStackObject("spells or abilities your opponents control"), Constants.Duration.WhileOnBattlefield));
|
||||
private HexproofAbility() {
|
||||
super(Constants.Zone.BATTLEFIELD, new CantTargetSourceEffect(filter, Constants.Duration.WhileOnBattlefield));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue