mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Updated cards which target cards with attribute x
This commit is contained in:
parent
b3712b88c7
commit
dcddc91144
10 changed files with 53 additions and 59 deletions
|
|
@ -6,5 +6,5 @@ package mage.constants;
|
|||
*/
|
||||
public enum TargetAdjustment {
|
||||
|
||||
NONE, X_TARGETS, X_CMC_EQUAL_PERM, X_CMC_EQUAL_NONPERM, DEFENDING_PLAYER
|
||||
NONE, X_TARGETS, X_CMC_EQUAL_PERM, GETH, DEFENDING_PLAYER,X_POWER_LEQ
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,8 +53,7 @@ public interface Target extends Serializable {
|
|||
boolean isNotTarget();
|
||||
|
||||
/**
|
||||
* controls if it will be checked, if the target can be targeted from
|
||||
* source
|
||||
* controls if it will be checked, if the target can be targeted from source
|
||||
*
|
||||
* @param notTarget true = do not check for protection, false = check for
|
||||
* protection
|
||||
|
|
@ -113,6 +112,8 @@ public interface Target extends Serializable {
|
|||
|
||||
int getNumberOfTargets();
|
||||
|
||||
int getMinNumberOfTargets();
|
||||
|
||||
int getMaxNumberOfTargets();
|
||||
|
||||
void setMinNumberOfTargets(int minNumberofTargets);
|
||||
|
|
@ -157,8 +158,8 @@ public interface Target extends Serializable {
|
|||
void setTargetTag(int tag);
|
||||
|
||||
Target getOriginalTarget();
|
||||
|
||||
|
||||
// used for cards like Spellskite
|
||||
void setTargetAmount(UUID targetId, int amount, Game game);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,6 +105,11 @@ public abstract class TargetImpl implements Target {
|
|||
return this.minNumberOfTargets;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMinNumberOfTargets() {
|
||||
return this.minNumberOfTargets;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxNumberOfTargets() {
|
||||
return this.maxNumberOfTargets;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue