- Fix for Spellskite dealing with a targeted source spell/ability that has multiple targets.

This commit is contained in:
Achilles 2017-03-07 22:14:18 -06:00
parent f5d13944a6
commit 31ba751c66
3 changed files with 136 additions and 5 deletions

View file

@ -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);
}

View file

@ -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);
}
}