Copied Morphed card
This commit is contained in:
@@ -390,19 +390,25 @@ int AACopier::resolve()
|
||||
MTGCardInstance * _target = (MTGCardInstance *) target;
|
||||
if (_target)
|
||||
{
|
||||
if(_target->isACopier)
|
||||
MTGCard* clone = MTGCollection()->getCardById(_target->copiedID);
|
||||
MTGCardInstance * myClone = NEW MTGCardInstance(clone, source->controller()->game);
|
||||
source->copy(myClone);
|
||||
source->isACopier = true;
|
||||
source->copiedID = _target->copiedID;
|
||||
source->modifiedbAbi = _target->modifiedbAbi;
|
||||
source->origbasicAbilities = _target->origbasicAbilities;
|
||||
if(_target->isMorphed)
|
||||
{
|
||||
MTGCard* clone = MTGCollection()->getCardById(_target->copiedID);
|
||||
MTGCardInstance * myClone = NEW MTGCardInstance(clone, source->controller()->game);
|
||||
source->copy(myClone);
|
||||
source->isACopier = true;
|
||||
source->copiedID = _target->copiedID;
|
||||
}
|
||||
else
|
||||
{
|
||||
source->copy(_target);
|
||||
source->isACopier = true;
|
||||
source->copiedID = _target->getId();
|
||||
source->power = 2;
|
||||
source->life = 2;
|
||||
source->toughness = 2;
|
||||
source->setColor(0,1);
|
||||
source->name = "Morph";
|
||||
source->types.clear();
|
||||
string cre = "Creature";
|
||||
source->setType(cre.c_str());
|
||||
source->basicAbilities.reset();
|
||||
source->getManaCost()->resetCosts();
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -292,7 +292,7 @@ void CardGui::Render()
|
||||
|
||||
}
|
||||
JQuadPtr mor;
|
||||
if(card->isMorphed && !alternate)
|
||||
if((card->isMorphed||(card->name == "Morph" && card->isACopier)) && !alternate)
|
||||
{
|
||||
mor = card->getObserver()->getResourceManager()->RetrieveTempQuad("morph.jpg");
|
||||
if (mor && mor->mTex) {
|
||||
|
||||
Reference in New Issue
Block a user