more fixes
This commit is contained in:
@@ -275,9 +275,16 @@ private:
|
||||
}
|
||||
if(s == "prex")
|
||||
{
|
||||
ManaCost * cX = card->controller()->getManaPool()->Diff(card->getManaCost());
|
||||
intValue = cX->getCost(Constants::NB_Colors);
|
||||
delete cX;
|
||||
if (card->setX > -1)
|
||||
{
|
||||
intValue = card->setX;
|
||||
}
|
||||
else
|
||||
{
|
||||
ManaCost * cX = card->controller()->getManaPool()->Diff(card->getManaCost());
|
||||
intValue = cX->getCost(Constants::NB_Colors);
|
||||
delete cX;
|
||||
}
|
||||
}
|
||||
else if (s == "x" || s == "X")
|
||||
{
|
||||
|
||||
@@ -467,6 +467,10 @@ void ActionLayer::doReactTo(int menuIndex)
|
||||
{
|
||||
int controlid = abilitiesMenu->mObjects[menuIndex]->GetId();
|
||||
DebugTrace("ActionLayer::doReactTo " << controlid);
|
||||
if (abilitiesMenu && abilitiesMenu->isMultipleChoice)
|
||||
{
|
||||
return ButtonPressedOnMultipleChoice(menuIndex);
|
||||
}
|
||||
ButtonPressed(0, controlid);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user