replace TARGET_NONE with NONE, getAllAbilityFlags with getAbilityFlags
parent
aa270db22f
commit
35a65f4f47
|
@ -37,7 +37,7 @@ public class MagicBuybackChoice extends MagicChoice {
|
|||
public MagicTargetChoice getTargetChoice() {
|
||||
return (otherChoice instanceof MagicTargetChoice) ?
|
||||
(MagicTargetChoice)otherChoice :
|
||||
MagicTargetChoice.TARGET_NONE;
|
||||
MagicTargetChoice.NONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -53,7 +53,7 @@ public abstract class MagicChoice {
|
|||
}
|
||||
|
||||
public MagicTargetChoice getTargetChoice() {
|
||||
return MagicTargetChoice.TARGET_NONE;
|
||||
return MagicTargetChoice.NONE;
|
||||
}
|
||||
|
||||
public int getManaChoiceResultIndex() {
|
||||
|
|
|
@ -28,7 +28,7 @@ public class MagicCombatCreature {
|
|||
this.score = permanent.getScore();
|
||||
final MagicPowerToughness pt = permanent.getPowerToughness();
|
||||
lethalDamage = permanent.getLethalDamage(pt.toughness());
|
||||
flags = permanent.getAllAbilityFlags();
|
||||
flags = permanent.getAbilityFlags();
|
||||
power = MagicAbility.DoubleStrike.hasAbility(flags) ?
|
||||
pt.getPositivePower() * 2 :
|
||||
pt.getPositivePower();
|
||||
|
|
|
@ -48,7 +48,7 @@ public class MagicKickerChoice extends MagicChoice {
|
|||
|
||||
@Override
|
||||
public MagicTargetChoice getTargetChoice() {
|
||||
return (otherChoice instanceof MagicTargetChoice) ? (MagicTargetChoice)otherChoice : MagicTargetChoice.TARGET_NONE;
|
||||
return (otherChoice instanceof MagicTargetChoice) ? (MagicTargetChoice)otherChoice : MagicTargetChoice.NONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -31,7 +31,7 @@ public class MagicMayChoice extends MagicChoice {
|
|||
super(description);
|
||||
this.choices=choices;
|
||||
|
||||
MagicTargetChoice localTargetChoice = MagicTargetChoice.TARGET_NONE;
|
||||
MagicTargetChoice localTargetChoice = MagicTargetChoice.NONE;
|
||||
int localManaChoiceResultIndex = -1;
|
||||
for (int index=0;index<choices.length;index++) {
|
||||
final MagicChoice choice=choices[index];
|
||||
|
|
|
@ -18,8 +18,8 @@ import java.util.Map;
|
|||
import java.util.Set;
|
||||
|
||||
public class MagicTargetChoice extends MagicChoice {
|
||||
public static final MagicTargetChoice TARGET_NONE =
|
||||
new MagicTargetChoice(MagicTargetFilter.ALL,false,MagicTargetHint.None,"nothing") {
|
||||
public static final MagicTargetChoice NONE =
|
||||
new MagicTargetChoice(MagicTargetFilter.NONE,false,MagicTargetHint.None,"nothing") {
|
||||
@Override
|
||||
public boolean isValid() {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue