Erwan
- 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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ class ManaCost{
|
||||
|
||||
int isPositive();
|
||||
ManaCost * Diff(ManaCost * _cost);
|
||||
#ifdef WIN32
|
||||
void Dump();
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user