turned the "ai hint" for level up creatures into an MTGAbility.

this fixes a bug(?) that had high priority and maintains same effect as before. removed all traces of the "bugged(?) hint" from CardPrimitive.
Issue: 498
This commit is contained in:
omegablast2002@yahoo.com
2010-10-31 17:19:20 +00:00
parent 777098f763
commit 150c5f4c99
7 changed files with 39 additions and 20 deletions
+20
View File
@@ -2915,6 +2915,26 @@ public:
}
};
/* set max level up on a levelup creature this is an Ai hint ability, no effect for players.*/
class AAWhatsMax:public ActivatedAbility{
public:
int value;
AAWhatsMax(int id, MTGCardInstance * card, MTGCardInstance * source,ManaCost * _cost = NULL, int doTap = 0,int value = 0):ActivatedAbility(id,card, _cost,0,doTap),value(value){
}
int resolve(){
MTGCardInstance * _target = (MTGCardInstance *) target;
if (source){
source->MaxLevelUp = value;
}
return 1;
}
AAWhatsMax * clone() const{
AAWhatsMax * a = NEW AAWhatsMax(*this);
a->isClone = 1;
return a;
}
};
/* Can prevent a card from untapping next untap */
class AAFrozen:public ActivatedAbility{
public: