Laurent -
Added "untap all" to the parser (not tested but should work since it is the same as tap all) Modified "cantbeblockedby" also still don't function properly, atm it cause the creature to be "unblockable"... Should work, I don't get it !!! (Why ???) Also added Seedborn Muse (like all the Muse a very Powerfull card), especially as combo with cards that "DOESNOTUNTAP" during your untap phase...
This commit is contained in:
@@ -3740,4 +3740,32 @@ class ARampageAbility:public MTGAbility{
|
||||
}
|
||||
};
|
||||
|
||||
// Dreamborn Muse
|
||||
class ASeedbornMuse: public TriggeredAbility{
|
||||
public:
|
||||
int nbcards;
|
||||
ASeedbornMuse(int _id, MTGCardInstance * _source):TriggeredAbility(_id, _source){
|
||||
}
|
||||
|
||||
int trigger(){
|
||||
if (newPhase != currentPhase && newPhase == Constants::MTG_PHASE_UPKEEP && ((MTGCardInstance *) source)->controller()!= game->currentPlayer){
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int resolve(){
|
||||
for (int j = source->controller()->game->inPlay->nb_cards-1; j >=0 ; j--){
|
||||
MTGCardInstance * current = source->controller()->game->inPlay->cards[j];
|
||||
current->tapped = 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
virtual ostream& toString(ostream& out) const
|
||||
{
|
||||
out << "ASeedbornMuse ::: (";
|
||||
return TriggeredAbility::toString(out) << ")";
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -234,6 +234,7 @@ class AbilityFactory{
|
||||
int moveAll(TargetChooser * tc, string destinationZone);
|
||||
int damageAll(TargetChooser * tc, int damage);
|
||||
int TapAll(TargetChooser * tc);
|
||||
int UntapAll(TargetChooser * tc);
|
||||
void addAbilities(int _id, Spell * spell);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user