- Updated alternate render
- Display hybrid mana cost on alternate Render
- Display big card in graveyard
- gray out alternate render when targetChooser is active
- Non-copyrighted avatars for the AI. They suck...
This commit is contained in:
wagic.the.homebrew
2009-01-17 10:16:10 +00:00
parent 82d8503ed4
commit 027e1b9bba
14 changed files with 1450 additions and 36 deletions

View File

@@ -145,6 +145,11 @@ int ManaCost::getCost(int color){
return cost[color];
}
ManaCostHybrid * ManaCost::getHybridCost(unsigned int i){
if (nbhybrids <= i) return NULL;
return hybrids[i];
}
int ManaCost::getMainColor(){
for (int i=0; i< Constants::MTG_NB_COLORS; i++){
if (cost[i]) return i;
@@ -203,7 +208,7 @@ int ManaCost::addHybrid(int c1, int v1, int c2, int v2){
hybrids[nbhybrids] = h;
nbhybrids++;
return nbhybrids;
}
}
int ManaCost::pay(ManaCost * _cost){
ManaCost * diff = Diff(_cost);