- new Ability : ALifeGiver (bottle gnomes)
- Added a few cards from Tempest
- Hybrid mana fix for hybrid mana involving uncolored mana costs (see tests/generic/hybridmana2.txt - spectral possession)
- Fixed bugs with targetting for TargetAbilities
- Fixed multiple sacrifice abilities cost (Siege gang commander, see tests)
- Fixed a small font issue
This commit is contained in:
wagic.the.homebrew
2009-02-11 09:38:20 +00:00
parent 391bdaf0d8
commit 6d1d5d751a
22 changed files with 226 additions and 53 deletions

View File

@@ -93,6 +93,28 @@ class ADrawer:public ActivatedAbility{
};
// Gives/Takes Life to controller of source
class ALifeGiver:public ActivatedAbility{
public:
int life;
ALifeGiver(int _id, MTGCardInstance * card,ManaCost * _cost, int _life, int _tap = 1):ActivatedAbility(_id, card,_cost,0,_tap),life(_life){
}
int resolve(){
source->controller()->life+=life;
return 1;
}
const char * getMenuText(){
if (life < 0) return "Lose life";
return "Gain life";
}
};
class ATokenCreator:public ActivatedAbility{
public:
list<int>abilities;

View File

@@ -437,7 +437,7 @@ class GameStateDeckViewer: public GameState, public JGuiListener
mFont->DrawString(buffer, SCREEN_WIDTH-120 , y);
if (colorFilter != ALL_COLORS){
sprintf(buffer2, "( %i)", myDeck->getCount(colorFilter));
sprintf(buffer2, "( %i)", myDeck->getCount(colorFilter));
mFont->DrawString(buffer2, SCREEN_WIDTH-55 , y);
JRenderer::GetInstance()->RenderQuad(mIcons[colorFilter], SCREEN_WIDTH-42 , y + 6 , 0.0f,0.5,0.5);
}

View File

@@ -58,6 +58,9 @@ class ManaCost{
int isPositive();
ManaCost * Diff(ManaCost * _cost);
#ifdef WIN32
void Dump();
#endif
};
#endif