- bug fixes (civic wayfinder, fault line)
- target's quad is displayed for generictargetabilities
- added menutext for powertoughnessmodifier
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-26 03:15:52 +00:00
parent ee61d7ad6b
commit bf8d4fd827
9 changed files with 105 additions and 20 deletions
+10
View File
@@ -1062,6 +1062,12 @@ class AInstantPowerToughnessModifierUntilEOT: public InstantAbility{
return 1;
}
const char * getMenuText(){
char buffer[4096];
sprintf(buffer, "%i/%i",power,toughness);
return buffer;
}
virtual ostream& toString(ostream& out) const
{
out << "APowerToughnessModifierUntilEndOfTurn ::: power : " << power
@@ -1101,6 +1107,10 @@ class APowerToughnessModifierUntilEndOfTurn: public ActivatedAbility{
return resolve();
}
const char * getMenuText(){
return ability->getMenuText();
}
int isReactingToClick(MTGCardInstance * card, ManaCost * mana = NULL){
if (!ActivatedAbility::isReactingToClick(card,mana)) return 0;
return (!maxcounters || (counters < maxcounters));
+1
View File
@@ -205,6 +205,7 @@ class AbilityFactory{
int abilityEfficiency(MTGAbility * a, Player * p, int mode = MODE_ABILITY);
public:
int magicText(int id, Spell * spell, MTGCardInstance * card = NULL);
static int computeX(Spell * spell, MTGCardInstance * card);
int destroyAllInPlay(TargetChooser * tc, int bury = 0);
int moveAll(TargetChooser * tc, string destinationZone);
int damageAll(TargetChooser * tc, int damage);