mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
replaced X cmc targeting adjustment
This commit is contained in:
parent
9b94b618cd
commit
7305fbac3a
8 changed files with 13 additions and 27 deletions
|
|
@ -361,16 +361,6 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
|||
switch (ability.getTargetAdjustment()) {
|
||||
case NONE:
|
||||
break;
|
||||
case X_CMC_EQUAL_PERM:
|
||||
// xValue = ability.getManaCostsToPay().getX();
|
||||
// oldTargetPermanent = (TargetPermanent) ability.getTargets().get(0);
|
||||
// minTargets = oldTargetPermanent.getMinNumberOfTargets();
|
||||
// maxTargets = oldTargetPermanent.getMaxNumberOfTargets();
|
||||
// permanentFilter = oldTargetPermanent.getFilter().copy();
|
||||
// permanentFilter.add(new ConvertedManaCostPredicate(ComparisonType.EQUAL_TO, xValue));
|
||||
// ability.getTargets().clear();
|
||||
// ability.getTargets().add(new TargetPermanent(minTargets, maxTargets, permanentFilter, false));
|
||||
break;
|
||||
case X_TARGETS:
|
||||
xValue = ability.getManaCostsToPay().getX();
|
||||
permanentFilter = ((TargetPermanent) ability.getTargets().get(0)).getFilter();
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@ import mage.game.Game;
|
|||
*/
|
||||
public interface TargetAdjuster {
|
||||
|
||||
public void adjustTargets(Ability ability, Game game);
|
||||
void adjustTargets(Ability ability, Game game);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@ import mage.target.TargetPermanent;
|
|||
*
|
||||
* @author TheElk801
|
||||
*/
|
||||
public class XCMCPermanentAdjuster implements TargetAdjuster {
|
||||
public enum XCMCPermanentAdjuster implements TargetAdjuster {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public void adjustTargets(Ability ability, Game game) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue