added support for alternative casting cost, evoke, added support for phantom cycle,hydras, added support for exile/bounce as casting cost

This commit is contained in:
omegablast2002@yahoo.com
2010-08-30 18:45:38 +00:00
parent e6769fcfe9
commit 0b4dde558b
20 changed files with 347 additions and 13 deletions

View File

@@ -109,6 +109,7 @@ void MTGCardInstance::initMTGCI(){
next = NULL;
lastController = NULL;
regenerateTokens = 0;
costAmount = 0;
blocked = false;
currentZone = NULL;
data = this; //an MTGCardInstance point to itself for data, allows to update it without killing the underlying database item
@@ -296,6 +297,10 @@ int MTGCardInstance::hasSummoningSickness(){
return 1;
}
int MTGCardInstance::getCostAmount(){
return 1;
}
MTGCardInstance * MTGCardInstance::changeController(Player * newController){
Player * originalOwner = controller();
if (originalOwner == newController) return this;