mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -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
|
|
@ -66,7 +66,7 @@ public interface Target extends Serializable {
|
|||
void addTarget(UUID id, int amount, Ability source, Game game, boolean skipEvent);
|
||||
boolean canTarget(UUID id, Game game);
|
||||
boolean canTarget(UUID id, Ability source, Game game);
|
||||
boolean canTarget(UUID id, UUID playerId, Ability source, Game game);
|
||||
boolean canTarget(UUID playerId, UUID id, Ability source, Game game);
|
||||
boolean isLegal(Ability source, Game game);
|
||||
List<? extends Target> getTargetOptions(Ability source, Game game);
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ public abstract class TargetObject extends TargetImpl {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean canTarget(UUID id, UUID playerId, Ability source, Game game) {
|
||||
public boolean canTarget(UUID playerId, UUID id, Ability source, Game game) {
|
||||
return canTarget(id, source, game);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public class TargetCardInHand extends TargetCard {
|
|||
|
||||
@Override
|
||||
public boolean canTarget(UUID id, Ability source, Game game) {
|
||||
return this.canTarget(id, source.getControllerId(), source, game);
|
||||
return this.canTarget(source.getControllerId(), id, source, game);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ public class TargetCreatureOrPlayer extends TargetImpl {
|
|||
|
||||
@Override
|
||||
public boolean canTarget(UUID id, Ability source, Game game) {
|
||||
return canTarget(null, id, source, game);
|
||||
return canTarget(source.getControllerId(), id, source, game);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue