From 568f3ae94fe8a94457a821cd37cae6bcbae59790 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Sun, 14 Aug 2016 21:26:33 +0800 Subject: [PATCH] fix copying man lands --- projects/mtg/src/MTGCardInstance.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGCardInstance.cpp b/projects/mtg/src/MTGCardInstance.cpp index 008734c53..ed002960d 100644 --- a/projects/mtg/src/MTGCardInstance.cpp +++ b/projects/mtg/src/MTGCardInstance.cpp @@ -106,6 +106,7 @@ void MTGCardInstance::copy(MTGCardInstance * card) CardPrimitive * data = source->data; basicAbilities = data->basicAbilities; + types.clear();//reset types.. fix copying man lands... the copier becomes an unanimated land... for (size_t i = 0; i < data->types.size(); i++) { types.push_back(data->types[i]); @@ -115,7 +116,7 @@ void MTGCardInstance::copy(MTGCardInstance * card) manaCost.copy(data->getManaCost()); - setText(""); //The text is retrieved from the data anyways + setText(data->text); //The text is retrieved from the data anyways setName(data->name); power = data->power;//layer 7a