- Fixed Damage All (Ashen Firebeast/ See test)
- Fixed Momir crash if no card with corresponding mana cost exists
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-05-28 09:42:52 +00:00
parent 821a422149
commit 1a21ca454a
7 changed files with 92 additions and 11 deletions
+28
View File
@@ -1350,6 +1350,34 @@ class AForeach:public ListMaintainerAbility{
};
//Damage all.... ActivatedAbility
class AAllDamager:public ActivatedAbility{
public:
int damage;
AAllDamager(int _id, MTGCardInstance * _source, ManaCost * _cost, int _damage, TargetChooser * _tc ,int doTap =1):ActivatedAbility(_id,_source,_cost,0,doTap),damage(_damage){
tc = _tc;
}
int resolve(){
AbilityFactory af;
af.damageAll(tc,damage);
return 1;
}
const char * getMenuText(){
return "Damage All...";
}
virtual ostream& toString(ostream& out) const
{
out << "AAllDamager ::: damage : " << damage
<< " (";
return ActivatedAbility::toString(out) << ")";
}
};
/* Standard Damager, can choose a NEW target each time the price is paid */
class ADamager:public TargetAbility{