Fix for token cloning

Some tokens when cloned produces miscalculated PT(Using foreach,
aslongas and others that needs CDA). This should fix the issue. TODO:
add tests and updated mtg.txt ...
This commit is contained in:
Anthony Calosa
2015-09-16 20:36:58 +08:00
parent 8e057379ce
commit 425b51de08
3 changed files with 41 additions and 8 deletions
+3 -2
View File
@@ -2536,12 +2536,13 @@ int AACloner::resolve()
spell->source->fresh = 1;
spell->source->model = spell->source;
spell->source->model->data = spell->source;
if(_target->isToken)
//commenting this out fixes some problems when duplicating tokens 9/16/2015
/*if(_target->isToken)
{
spell->source->power = _target->origpower;
spell->source->toughness = _target->origtoughness;
spell->source->life = _target->origtoughness;
}
}*/
list<int>::iterator it;
for (it = awith.begin(); it != awith.end(); it++)
{