Fix Copier
This commit is contained in:
@@ -1457,15 +1457,16 @@ int AACopier::resolve()
|
|||||||
MTGCardInstance * _target = (MTGCardInstance *) target;
|
MTGCardInstance * _target = (MTGCardInstance *) target;
|
||||||
if (_target)
|
if (_target)
|
||||||
{
|
{
|
||||||
MTGCard* clone = MTGCollection()->getCardById(_target->copiedID);
|
MTGCard* clone ;
|
||||||
|
if(_target->isToken || _target->isACopier)
|
||||||
|
clone = _target;
|
||||||
|
else
|
||||||
|
clone = MTGCollection()->getCardById(_target->copiedID);
|
||||||
MTGCardInstance * myClone = NEW MTGCardInstance(clone, source->controller()->game);
|
MTGCardInstance * myClone = NEW MTGCardInstance(clone, source->controller()->game);
|
||||||
source->copy(myClone);
|
source->copy(myClone);
|
||||||
SAFE_DELETE(myClone);
|
SAFE_DELETE(myClone);
|
||||||
source->isACopier = true;
|
source->isACopier = true;
|
||||||
source->copiedID = _target->getMTGId();
|
source->copiedID = _target->copiedID;
|
||||||
source->modifiedbAbi = _target->modifiedbAbi;
|
|
||||||
source->origbasicAbilities = _target->origbasicAbilities;
|
|
||||||
source->basicAbilities = _target->origbasicAbilities;
|
|
||||||
if(_target->isMorphed)
|
if(_target->isMorphed)
|
||||||
{
|
{
|
||||||
source->power = 2;
|
source->power = 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user