mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
- Fix for Spellskite dealing with a targeted source spell/ability that has multiple targets.
This commit is contained in:
parent
f5d13944a6
commit
31ba751c66
3 changed files with 136 additions and 5 deletions
|
|
@ -53,7 +53,7 @@ public interface Target extends Serializable {
|
|||
boolean isNotTarget();
|
||||
|
||||
/**
|
||||
* controlls if it will be checked, if the target can be targeted from
|
||||
* 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
|
||||
|
|
@ -157,4 +157,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);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -544,7 +544,7 @@ public abstract class TargetImpl implements Target {
|
|||
}
|
||||
|
||||
/**
|
||||
* Is used to be able to check, that another target is slected within the
|
||||
* Is used to be able to check, that another target is selected within the
|
||||
* group of targets of the ability with a target tag > 0.
|
||||
*
|
||||
* @param targetTag
|
||||
|
|
@ -559,4 +559,10 @@ public abstract class TargetImpl implements Target {
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTargetAmount(UUID targetId, int amount, Game game) {
|
||||
targets.put(targetId, amount);
|
||||
rememberZoneChangeCounter(targetId, game);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue