Erwan -fix one bug with animate dead

This commit is contained in:
wagic.the.homebrew
2009-03-18 14:03:18 +00:00
parent a3c3006043
commit 69e7191054
+4 -2
View File
@@ -1771,8 +1771,7 @@ class AAnimateDead:public MTGAbility{
public:
AAnimateDead(int _id, MTGCardInstance * _source, MTGCardInstance * _target):MTGAbility(_id, _source, _target){
MTGCardInstance * card = _target;
card->power--;
card->life = card->toughness;
//Put the card in play again, with all its abilities !
//AbilityFactory af;
MTGCardInstance * copy = source->controller()->game->putInZone(card, _target->controller()->game->graveyard, source->controller()->game->stack);
@@ -1781,6 +1780,9 @@ class AAnimateDead:public MTGAbility{
spell->resolve();
target = spell->source;
card = spell->source;
card->power--;
card->life = card->toughness;
delete spell;
}