From 57c58805a8be0bf1e990ee38d66cbf0025b5fecd Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew" Date: Wed, 22 Jul 2009 01:03:59 +0000 Subject: [PATCH] Erwan -small fix counters --- projects/mtg/src/MTGAbility.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 9fdbebdd6..970d966bb 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -514,7 +514,9 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG string spt = s.substr(found,end-found); int power, toughness; if ( parsePowerToughness(spt,&power, &toughness)){ - return NEW AACounter(id,card,target,power,toughness,nb); + MTGAbility * a = NEW AACounter(id,card,target,power,toughness,nb); + a->oneShot = 1; + return a; } return NULL; }