"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.

This commit is contained in:
omegablast2002@yahoo.com
2011-03-30 03:11:06 +00:00
parent 63979190cd
commit 948dd212a8

View File

@@ -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...