replace constant with enum, CannnotBeTheTarget with Hexproof
parent
78f11bee3f
commit
b7746bb330
|
@ -65,7 +65,7 @@ public class AEther_Vial {
|
|||
final MagicTargetFilter targetFilter =
|
||||
new MagicTargetFilter.MagicCMCTargetFilter<MagicTarget>(
|
||||
MagicTargetFilter.TARGET_CREATURE_CARD_FROM_HAND,
|
||||
MagicTargetFilter.MagicCMCTargetFilter.EQUAL,
|
||||
MagicTargetFilter.Operator.EQUAL,
|
||||
source.getCounters(MagicCounterType.Charge));
|
||||
final MagicTargetChoice targetChoice =
|
||||
new MagicTargetChoice(
|
||||
|
|
|
@ -13,7 +13,7 @@ public class Angelic_Overseer {
|
|||
for (final MagicPermanent target : permanent.getController().getPermanents()) {
|
||||
if (target != permanent && target.hasSubType(MagicSubType.Human)) {
|
||||
return flags |
|
||||
MagicAbility.CannotBeTheTarget.getMask() |
|
||||
MagicAbility.Hexproof.getMask() |
|
||||
MagicAbility.Indestructible.getMask();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ public class Asceticism {
|
|||
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL) {
|
||||
@Override
|
||||
public long getAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final long flags) {
|
||||
return flags | MagicAbility.CannotBeTheTarget.getMask();
|
||||
return flags | MagicAbility.Hexproof.getMask();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ import magic.model.trigger.MagicWhenPutIntoGraveyardTrigger;
|
|||
public class Driver_of_the_Dead {
|
||||
private static final MagicTargetFilter targetFilter = new MagicTargetFilter.MagicCMCTargetFilter<MagicCard>(
|
||||
MagicTargetFilter.TARGET_CREATURE_CARD_FROM_GRAVEYARD,
|
||||
MagicTargetFilter.MagicCMCTargetFilter.LESS_THAN_OR_EQUAL,
|
||||
MagicTargetFilter.Operator.LESS_THAN_OR_EQUAL,
|
||||
2
|
||||
);
|
||||
private static final MagicTargetChoice targetChoice = new MagicTargetChoice(
|
||||
|
|
|
@ -27,7 +27,7 @@ public class Drogskol_Captain {
|
|||
MagicTargetFilter.TARGET_SPIRIT_YOU_CONTROL) {
|
||||
@Override
|
||||
public long getAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final long flags) {
|
||||
return flags | MagicAbility.CannotBeTheTarget.getMask();
|
||||
return flags | MagicAbility.Hexproof.getMask();
|
||||
}
|
||||
@Override
|
||||
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
|
||||
|
|
|
@ -42,7 +42,7 @@ public class Kodama_of_the_Center_Tree {
|
|||
final MagicTargetFilter targetFilter =
|
||||
new MagicTargetFilter.MagicCMCTargetFilter<MagicTarget>(
|
||||
MagicTargetFilter.TARGET_SPIRIT_CARD_FROM_GRAVEYARD,
|
||||
MagicTargetFilter.MagicCMCTargetFilter.LESS_THAN_OR_EQUAL,
|
||||
MagicTargetFilter.Operator.LESS_THAN_OR_EQUAL,
|
||||
cmc);
|
||||
final MagicTargetChoice targetChoice =
|
||||
new MagicTargetChoice(
|
||||
|
|
|
@ -21,7 +21,7 @@ public class Lord_of_the_Unreal {
|
|||
MagicTargetFilter.TARGET_ILLUSION_YOU_CONTROL) {
|
||||
@Override
|
||||
public long getAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final long flags) {
|
||||
return flags | MagicAbility.CannotBeTheTarget.getMask();
|
||||
return flags | MagicAbility.Hexproof.getMask();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ public class Ratchet_Bomb {
|
|||
game.filterPermanents(source.getController(),
|
||||
new MagicTargetFilter.MagicCMCTargetFilter<MagicPermanent>(
|
||||
MagicTargetFilter.TARGET_NONLAND_PERMANENT,
|
||||
MagicTargetFilter.MagicCMCTargetFilter.EQUAL,
|
||||
MagicTargetFilter.Operator.EQUAL,
|
||||
amount));
|
||||
game.doAction(new MagicDestroyAction(targets));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue