mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
small fix
This commit is contained in:
parent
bd415215f5
commit
b0c3d6aee6
2 changed files with 18 additions and 11 deletions
|
|
@ -371,6 +371,15 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
||||||
ability.getTargets().clear();
|
ability.getTargets().clear();
|
||||||
ability.getTargets().add(new TargetPermanent(minTargets, maxTargets, permanentFilter, false));
|
ability.getTargets().add(new TargetPermanent(minTargets, maxTargets, permanentFilter, false));
|
||||||
break;
|
break;
|
||||||
|
case VERSE_COUNTER_TARGETS:
|
||||||
|
Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(ability.getSourceId());
|
||||||
|
if (sourcePermanent != null) {
|
||||||
|
xValue = sourcePermanent.getCounters(game).getCount(CounterType.VERSE);
|
||||||
|
permanentFilter = ((TargetPermanent) ability.getTargets().get(0)).getFilter();
|
||||||
|
ability.getTargets().clear();
|
||||||
|
ability.addTarget(new TargetPermanent(0, xValue, permanentFilter, false));
|
||||||
|
}
|
||||||
|
break;
|
||||||
case X_CMC_EQUAL_GY_CARD: //Geth, Lord of the Vault only
|
case X_CMC_EQUAL_GY_CARD: //Geth, Lord of the Vault only
|
||||||
xValue = ability.getManaCostsToPay().getX();
|
xValue = ability.getManaCostsToPay().getX();
|
||||||
TargetCard oldTarget = (TargetCard) ability.getTargets().get(0);
|
TargetCard oldTarget = (TargetCard) ability.getTargets().get(0);
|
||||||
|
|
@ -398,16 +407,7 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
||||||
oldTargetPermanent = new TargetPermanent(filter);
|
oldTargetPermanent = new TargetPermanent(filter);
|
||||||
ability.addTarget(oldTargetPermanent);
|
ability.addTarget(oldTargetPermanent);
|
||||||
break;
|
break;
|
||||||
case VERSE_COUNTER_TARGETS:
|
case TREASURE_COUNTER_POWER: //Legacy's Allure only
|
||||||
Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(ability.getSourceId());
|
|
||||||
if (sourcePermanent != null) {
|
|
||||||
xValue = sourcePermanent.getCounters(game).getCount(CounterType.VERSE);
|
|
||||||
permanentFilter = ((TargetPermanent) ability.getTargets().get(0)).getFilter();
|
|
||||||
ability.getTargets().clear();
|
|
||||||
ability.addTarget(new TargetPermanent(0, xValue, permanentFilter, false));
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case TREASURE_COUNTER_POWER:
|
|
||||||
sourcePermanent = game.getPermanentOrLKIBattlefield(ability.getSourceId());
|
sourcePermanent = game.getPermanentOrLKIBattlefield(ability.getSourceId());
|
||||||
if (sourcePermanent != null) {
|
if (sourcePermanent != null) {
|
||||||
xValue = sourcePermanent.getCounters(game).getCount(CounterType.TREASURE);
|
xValue = sourcePermanent.getCounters(game).getCount(CounterType.TREASURE);
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,12 @@ package mage.constants;
|
||||||
*/
|
*/
|
||||||
public enum TargetAdjustment {
|
public enum TargetAdjustment {
|
||||||
|
|
||||||
NONE, X_TARGETS, X_CMC_EQUAL_PERM, X_CMC_EQUAL_GY_CARD, X_POWER_LEQ, CHOSEN_NAME, CHOSEN_COLOR, VERSE_COUNTER_TARGETS, TREASURE_COUNTER_POWER
|
NONE,
|
||||||
|
X_TARGETS,
|
||||||
|
X_CMC_EQUAL_PERM,
|
||||||
|
X_CMC_EQUAL_GY_CARD,
|
||||||
|
X_POWER_LEQ, CHOSEN_NAME,
|
||||||
|
CHOSEN_COLOR,
|
||||||
|
VERSE_COUNTER_TARGETS,
|
||||||
|
TREASURE_COUNTER_POWER
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue