added poison support, guicounter, "infect" ability, poisonous ability.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user