- minor fix in Zethfox cards addon (Bad lines error from parser)
- Zethfox's patch for {t(target)} as an extra Cost. Works the same way as sacrifice, check Azami, Lady of Scrolls for an example
- fixed compilation on the PSP (sorry!)
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-08-01 03:21:59 +00:00
parent f40af0b1cb
commit ce69e23357
10 changed files with 137 additions and 10 deletions
+2
View File
@@ -559,6 +559,8 @@ public:
return "Sacrifice";
}else if (dest == g->players[i]->game->library && tc->targetsZone(g->players[i]->game->graveyard)){
return "Recycle";
}else if (dest == g->players[i]->game->battlefield && tc->targetsZone(g->players[i]->game->graveyard)){
return "Reanimate";
}else if (dest == g->players[i]->game->library){
return "Put in Library";
}else if (dest == g->players[i]->game->graveyard && tc->targetsZone(g->players[i]->game->hand)){
+14
View File
@@ -55,6 +55,20 @@ public:
virtual SacrificeCost * clone() const;
};
//tap other cost
class TapTargetCost: public ExtraCost{
public:
MTGCardInstance * target;
TapTargetCost(TargetChooser *_tc = NULL);
virtual int setPayment(MTGCardInstance * card);
virtual int isPaymentSet();
virtual int canPay();
virtual int doPay();
virtual void Render();
virtual int setSource(MTGCardInstance * _source);
virtual TapTargetCost * clone() const;
};
class CounterCost: public ExtraCost{
public:
Counter * counter;
+1 -1
View File
@@ -56,7 +56,7 @@ private:
};
//Why do we need this ? could it move somewhere else ?
#if defined (LINUX)
#if !defined (WIN32)
#define BYTE u8
#define DWORD u32
#endif