From aeb4a839b2970b0a1bb603c62b750ce899a61b04 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Tue, 22 Mar 2011 02:25:02 +0000 Subject: [PATCH] fixed a report crash with auras that "teach(" an activated ability to a creature which can phaseout. --- projects/mtg/include/AllAbilities.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index 6f0579144..7c561976d 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -2667,6 +2667,8 @@ public: int canBeInList(MTGCardInstance * card) { + if(card->isPhased || source->isPhased) + return 0; if ((tc->source->hasSubtype("aura") || tc->source->hasSubtype("equipment") || tc->source->hasSubtype("instant") || tc->source->hasSubtype("sorcery")) && tc->canTarget(card) && card == tc->source->target && card != tc->source) return 1; return 0;