revert this

I introduce more bugs than helped. I think there's alternative method
for this,,,
This commit is contained in:
Anthony Calosa
2017-01-28 13:23:30 +08:00
parent c53ee24b5b
commit 3e75d70632
4 changed files with 9 additions and 76 deletions

View File

@@ -139,11 +139,11 @@ void MTGCardInstance::copy(MTGCardInstance * card)
int castMethodBackUP = this->castMethod;
mtgid = source->getId();
MTGCardInstance * oldStored = this->storedSourceCard;
/*Spell * spell = NEW Spell(observer, this);
Spell * spell = NEW Spell(observer, this);
observer = card->observer;
AbilityFactory af(observer);
af.addAbilities(observer->mLayers->actionLayer()->getMaxId(), spell);
delete spell;*/
delete spell;
if(observer->players[1]->playMode == Player::MODE_TEST_SUITE)
mtgid = backupid; // there must be a way to get the token id...
else
@@ -151,14 +151,11 @@ void MTGCardInstance::copy(MTGCardInstance * card)
mtgid = card->getMTGId(); ///////////////////////////////////////////////////
setId = card->setId; // Copier/Cloner cards produces the same token...//
rarity = card->getRarity(); ///////////////////////////////////////////////////
setMTGId(card->copiedID); //**************sets copier image****************//
}
castMethod = castMethodBackUP;
backupTargets = this->backupTargets;
storedCard = oldStored;
miracle = false;
mPropertiesChangedSinceLastUpdate = true;
}
MTGCardInstance::~MTGCardInstance()