mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
small fix
This commit is contained in:
parent
81a1e81525
commit
ab632ef1d0
1 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ public class ReturnToHandTargetEffect extends OneShotEffect {
|
||||||
for (Target target : source.getTargets()) {
|
for (Target target : source.getTargets()) {
|
||||||
for (UUID targetId : target.getTargets()) {
|
for (UUID targetId : target.getTargets()) {
|
||||||
MageObject mageObject = game.getObject(targetId);
|
MageObject mageObject = game.getObject(targetId);
|
||||||
if (mageObject instanceof Spell && !((Spell) mageObject).isCopy()) {
|
if (mageObject instanceof Spell && ((Spell) mageObject).isCopy()) {
|
||||||
copyIds.add(targetId);
|
copyIds.add(targetId);
|
||||||
} else if (mageObject instanceof Card) {
|
} else if (mageObject instanceof Card) {
|
||||||
cards.add((Card) mageObject);
|
cards.add((Card) mageObject);
|
||||||
|
|
@ -94,7 +94,7 @@ public class ReturnToHandTargetEffect extends OneShotEffect {
|
||||||
for (UUID targetId : targetPointer.getTargets(game, source)) {
|
for (UUID targetId : targetPointer.getTargets(game, source)) {
|
||||||
MageObject mageObject = game.getObject(targetId);
|
MageObject mageObject = game.getObject(targetId);
|
||||||
if (mageObject != null) {
|
if (mageObject != null) {
|
||||||
if (mageObject instanceof Spell && !((Spell) mageObject).isCopy()) {
|
if (mageObject instanceof Spell && ((Spell) mageObject).isCopy()) {
|
||||||
copyIds.add(targetId);
|
copyIds.add(targetId);
|
||||||
} else {
|
} else {
|
||||||
cards.add((Card) mageObject);
|
cards.add((Card) mageObject);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue