From 69e719105412a22024850622ee8a231fc2684881 Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew" Date: Wed, 18 Mar 2009 14:03:18 +0000 Subject: [PATCH] Erwan -fix one bug with animate dead --- projects/mtg/include/AllAbilities.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index 319860174..89c3da6fc 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -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; }