From 948dd212a8214ebca5d44bb1a15493f551d4ec20 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Wed, 30 Mar 2011 03:11:06 +0000 Subject: [PATCH] "xx" value wasnt being set if used in activated abilities. >:( why do i need to find out WAY later about these thing. i know someone has come across it becuase there was a morph card which uses {x}{x} that wasnt added because of it. --- projects/mtg/src/AllAbilities.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/mtg/src/AllAbilities.cpp b/projects/mtg/src/AllAbilities.cpp index 37b138f2d..b7afe6702 100644 --- a/projects/mtg/src/AllAbilities.cpp +++ b/projects/mtg/src/AllAbilities.cpp @@ -17,6 +17,7 @@ int GenericActivatedAbility::resolve() counters++; ManaCost * diff = abilityCost->Diff(cost); source->X = diff->hasX(); + source->XX = source->X/2; SAFE_DELETE(diff); //SAFE_DELETE(abilityCost); this line has been reported as a bug. removing it doesn't seem to break anything, although I didn't get any error in the test suite by leaving it either, so... leaving it for now as a comment, in case. ability->target = target; //may have been updated...