mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
updated abilities with x targets
This commit is contained in:
parent
cd3e038223
commit
856dcb54d5
10 changed files with 76 additions and 13 deletions
|
|
@ -99,7 +99,7 @@ public abstract class AbilityImpl implements Ability {
|
|||
protected List<Watcher> watchers = null;
|
||||
protected List<Ability> subAbilities = null;
|
||||
protected boolean canFizzle = true;
|
||||
protected TargetAdjustment targetAdjustment;
|
||||
protected TargetAdjustment targetAdjustment = TargetAdjustment.NONE;
|
||||
|
||||
public AbilityImpl(AbilityType abilityType, Zone zone) {
|
||||
this.id = UUID.randomUUID();
|
||||
|
|
@ -148,6 +148,7 @@ public abstract class AbilityImpl implements Ability {
|
|||
this.sourceObject = ability.sourceObject;
|
||||
this.sourceObjectZoneChangeCounter = ability.sourceObjectZoneChangeCounter;
|
||||
this.canFizzle = ability.canFizzle;
|
||||
this.targetAdjustment = ability.targetAdjustment;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -6,5 +6,5 @@ package mage.constants;
|
|||
*/
|
||||
public enum TargetAdjustment {
|
||||
|
||||
NONE,XCOST,DEFENDING_PLAYER
|
||||
NONE, X_TARGETS, X_CMC_EQUAL_PERM, X_CMC_EQUAL_NONPERM, DEFENDING_PLAYER
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@ public class StackAbility extends StackObjImpl implements Ability {
|
|||
this.controllerId = stackAbility.controllerId;
|
||||
this.name = stackAbility.name;
|
||||
this.expansionSetCode = stackAbility.expansionSetCode;
|
||||
this.targetAdjustment = stackAbility.targetAdjustment;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue