From 848093cf2b7e5d7c416f183840172237a73fbbb3 Mon Sep 17 00:00:00 2001 From: melvin Date: Tue, 8 Jan 2013 10:00:17 +0800 Subject: [PATCH] card on stack cannot target itself --- src/magic/model/stack/MagicItemOnStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/magic/model/stack/MagicItemOnStack.java b/src/magic/model/stack/MagicItemOnStack.java index f3e2ff6fd2..0f248b19f4 100644 --- a/src/magic/model/stack/MagicItemOnStack.java +++ b/src/magic/model/stack/MagicItemOnStack.java @@ -160,7 +160,7 @@ public abstract class MagicItemOnStack implements MagicTarget { @Override public boolean isValidTarget(final MagicSource aSource) { - return aSource!=this.source; + return aSource != this.source && aSource != this; } @Override