From 060164accee2e51b03d25b3ed5d941fc48edac72 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Mon, 10 Oct 2011 13:41:38 +0000 Subject: [PATCH] copy function grants the source of the abilities the castMethod of "notcast" which is default, however for cards which are played, such as vesuva on "copy" it would be granted a "not_cast" as its play method, allowing players to play another card of the type that a restriction would normally prevent you from playing...this effected all cards which "copy" such as shapeshifters. note: I do know it's as dirty as "mtgidbackup" but unfortunately I don't think there would be a simpler way to maintain it's cast method. --- projects/mtg/src/MTGCardInstance.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/mtg/src/MTGCardInstance.cpp b/projects/mtg/src/MTGCardInstance.cpp index 62e069d51..875df8237 100644 --- a/projects/mtg/src/MTGCardInstance.cpp +++ b/projects/mtg/src/MTGCardInstance.cpp @@ -81,6 +81,7 @@ void MTGCardInstance::copy(MTGCardInstance * card) //Now this is dirty... int backupid = mtgid; + int castMethodBackUP = this->castMethod; mtgid = source->getId(); Spell * spell = NEW Spell(observer, this); observer = card->observer; @@ -88,6 +89,7 @@ void MTGCardInstance::copy(MTGCardInstance * card) af.addAbilities(observer->mLayers->actionLayer()->getMaxId(), spell); delete spell; mtgid = backupid; + castMethod = castMethodBackUP; } MTGCardInstance::~MTGCardInstance()