mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
* Spellskite - Fixed that target could wrongly not be changed to spellskite in some cases.
This commit is contained in:
parent
48f0437bc7
commit
ea1a098300
7 changed files with 8 additions and 8 deletions
|
|
@ -109,7 +109,7 @@ class SpellskiteEffect extends OneShotEffect {
|
|||
}
|
||||
if (targets.size() == 1 && targets.get(0).getTargets().size() == 1) {
|
||||
Target target = targets.get(0);
|
||||
if (target.canTarget(source.getSourceId(), stackObject.getControllerId(), sourceAbility, game)) {
|
||||
if (target.canTarget(stackObject.getControllerId(), source.getSourceId(), sourceAbility, game)) {
|
||||
oldTarget = game.getObject(targets.getFirstTarget());
|
||||
target.clearChosen();
|
||||
target.add(source.getSourceId(), game);
|
||||
|
|
@ -128,7 +128,7 @@ class SpellskiteEffect extends OneShotEffect {
|
|||
name = object.getName();
|
||||
}
|
||||
if (name != null && player.chooseUse(Outcome.Neutral, new StringBuilder("Change target from ").append(name).append(" to ").append(sourceObject.getName()).append("?").toString(), game)) {
|
||||
if (target.canTarget(source.getSourceId(), stackObject.getControllerId(), sourceAbility, game)) {
|
||||
if (target.canTarget(stackObject.getControllerId(), source.getSourceId(), sourceAbility, game)) {
|
||||
oldTarget = game.getObject(targets.getFirstTarget());
|
||||
target.remove(targetId);
|
||||
target.addTarget(source.getSourceId(), source, game);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue