added poison support, guicounter, "infect" ability, poisonous ability.

This commit is contained in:
omegablast2002@yahoo.com
2010-08-25 18:56:34 +00:00
parent a9850317ff
commit e644aaae3a
14 changed files with 137 additions and 11 deletions
+29
View File
@@ -2196,7 +2196,36 @@ AADamager(int _id, MTGCardInstance * _source, Targetable * _target, WParsedInt *
};
//poison removel
class AARemovePoison:public ActivatedAbilityTP{
public:
int poison;
AARemovePoison(int _id, MTGCardInstance * _source, Targetable * _target,int poison, ManaCost * _cost=NULL, int doTap = 0, int who = TargetChooser::UNSET):ActivatedAbilityTP(_id,_source,_target,_cost,doTap,who),poison(poison){
}
int resolve(){
Damageable * _target = (Damageable *) getTarget();
if(_target){
_target->poisonCount -= poison;
}
return 0;
}
const char * getMenuText(){
return "Remove Poison";
}
AARemovePoison * clone() const{
AARemovePoison * a = NEW AARemovePoison(*this);
a->isClone = 1;
return a;
}
~AARemovePoison(){
}
};
/* Standard Damager, can choose a NEW target each time the price is paid */
class TADamager:public TargetAbility{
public: