castcard generated card
This commit is contained in:
@@ -8115,11 +8115,29 @@ int AACastCard::resolveSpell()
|
|||||||
{
|
{
|
||||||
if (_target->isLand())
|
if (_target->isLand())
|
||||||
{
|
{
|
||||||
MTGCardInstance * copy = _target->controller()->game->putInZone(_target, _target->currentZone, source->controller()->game->battlefield,noEvent);
|
if(theNamedCard)
|
||||||
copy->changeController(source->controller(),true);
|
{
|
||||||
this->forceDestroy = true;
|
MTGCardInstance * copy = _target->controller()->game->putInZone(_target, _target->currentZone, _target->controller()->game->temp);
|
||||||
processed = true;
|
copy->changeController(source->controller(),true);
|
||||||
return 1;
|
Spell * spell = NEW Spell(game, 0,copy,NULL,NULL, 1);
|
||||||
|
spell->resolve();
|
||||||
|
delete spell;
|
||||||
|
|
||||||
|
this->forceDestroy = true;
|
||||||
|
processed = true;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MTGAbility * a = NEW AAMover(game, -1, source, _target, "mybattlefield", "");
|
||||||
|
a->oneShot = true;
|
||||||
|
a->resolve();
|
||||||
|
SAFE_DELETE(a);
|
||||||
|
|
||||||
|
this->forceDestroy = true;
|
||||||
|
processed = true;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Spell * spell = NULL;
|
Spell * spell = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user