changed some logic for getting the pre x without shellcasting(?) spell...the variable word "prex" now returns the difference between the cards cost and the curentmanapool...giving us the value of pre x.some cards might need updating, doc can confirm it....

This commit is contained in:
omegablast2002@yahoo.com
2011-09-21 20:27:29 +00:00
parent 15f0143a8f
commit 4419ed4637
7 changed files with 48 additions and 70 deletions
+3 -3
View File
@@ -243,8 +243,7 @@ Interruptible(id), tc(tc), cost(_cost), payResult(payResult)
int Spell::computeX(MTGCardInstance * card)
{
ManaCost * c = NULL;
cost? c = cost->Diff(card->getManaCost()) : c = card->controller()->getManaPool()->Diff(card->getManaCost());
ManaCost * c = NEW ManaCost(cost->Diff(card->getManaCost()));
int x = c->getCost(Constants::MTG_NB_COLORS);
delete c;
return x;
@@ -589,7 +588,8 @@ int ActionStack::setIsInterrupting(Player * player)
// Is it a valid interruption request, or is uninterruptible stuff going on in the game?
if (game->getCurrentTargetChooser())
{
DebugTrace("ActionStack: WARNING - We were asked to interrupt, but some un-interruptible action is already going on");
DebugTrace("ActionStack: WARNING - We were asked to interrupt, During Targetchoosing" << endl
<< "source: " << (game->getCurrentTargetChooser()->source ? game->getCurrentTargetChooser()->source->name : "None" ) << endl );
return 0;
}