Devotion mechanics (thanks to excessum for patch)

+ some refactoring:
extrManaCost --> ExtraManaCost
unattachCost --> UnattachCost
This commit is contained in:
pankdm
2013-10-18 06:37:09 +00:00
parent d5b089f86b
commit f7eded7417
16 changed files with 203 additions and 66 deletions

View File

@@ -1275,9 +1275,9 @@ int GameObserver::cardClick(MTGCardInstance * card, Targetable * object, bool lo
break;
}
}
extraManaCost * costType = NULL;
ExtraManaCost * costType = NULL;
if( mExtraPayment && mExtraPayment->costs.size())
costType = dynamic_cast<extraManaCost*>(mExtraPayment->costs[0]);
costType = dynamic_cast<ExtraManaCost*>(mExtraPayment->costs[0]);
if (WaitForExtraPayment(card) && !costType)
{