added an ability keyword that resolves to do nothing.
"donothing"
this is to avoid using powerandtoughness 0/0 ability to mean "do nothing"
old code
[card]
name=Inquisition
target=player
auto=target(*|targetedpersonshand) 0/0
auto=foreach(*[white]|targetedpersonshand) damage:1 targetedplayer
text=Target player reveals his or her hand. Inquisition deals damage to that player equal to the number of white cards in his or her hand.
mana={2}{B}
type=Sorcery
[/card]
new code
[card]
name=Inquisition
target=player
auto=target(*|targetedpersonshand) donothing
auto=foreach(*[white]|targetedpersonshand) damage:1 targetedplayer
text=Target player reveals his or her hand. Inquisition deals damage to that player equal to the number of white cards in his or her hand.
mana={2}{B}
type=Sorcery
[/card]
This commit is contained in:
@@ -1176,6 +1176,26 @@ AAResetDamage * AAResetDamage::clone() const
|
||||
return NEW AAResetDamage(*this);
|
||||
}
|
||||
|
||||
//ability that resolves to do nothing.
|
||||
AAFakeAbility::AAFakeAbility(GameObserver* observer, int id, MTGCardInstance * source, MTGCardInstance * _target, ManaCost * cost):
|
||||
ActivatedAbility(observer, id, source, cost, 0)
|
||||
{
|
||||
this->target = _target;
|
||||
}
|
||||
int AAFakeAbility::resolve()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
const char* AAFakeAbility::getMenuText()
|
||||
{
|
||||
return "Ability";
|
||||
}
|
||||
|
||||
AAFakeAbility * AAFakeAbility::clone() const
|
||||
{
|
||||
return NEW AAFakeAbility(*this);
|
||||
}
|
||||
|
||||
// Fizzler
|
||||
AAFizzler::AAFizzler(GameObserver* observer, int _id, MTGCardInstance * card, Spell * _target, ManaCost * _cost) :
|
||||
|
||||
Reference in New Issue
Block a user