added epic cards, fixed maxcast bug
maxcast(*)0 - checks for the current action player of that turn, but when you passes the turn to the opponent, you can cast instant or cards with flash instead because you are not the current player, it mustcheck the controller of the card with play restriction if he can play it or not whether it your turn or the opponents turn.
This commit is contained in:
@@ -1328,6 +1328,31 @@ AAFakeAbility * AAFakeAbility::clone() const
|
||||
return NEW AAFakeAbility(*this);
|
||||
}
|
||||
|
||||
//EPIC
|
||||
AAEPIC::AAEPIC(GameObserver* observer, int id, MTGCardInstance * source, MTGCardInstance * _target, string _named,ManaCost * cost):
|
||||
ActivatedAbility(observer, id, source, cost, 0),named(_named)
|
||||
{
|
||||
this->target = _target;
|
||||
}
|
||||
int AAEPIC::resolve()
|
||||
{
|
||||
MTGCardInstance * _target = (MTGCardInstance *)target;
|
||||
_target->controller()->epic = 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string AAEPIC::getMenuText()
|
||||
{
|
||||
if(named.size())
|
||||
return named.c_str();
|
||||
return "EPIC";
|
||||
}
|
||||
|
||||
AAEPIC * AAEPIC::clone() const
|
||||
{
|
||||
return NEW AAEPIC(*this);
|
||||
}
|
||||
|
||||
// Fizzler
|
||||
AAFizzler::AAFizzler(GameObserver* observer, int _id, MTGCardInstance * card, Spell * _target, ManaCost * _cost) :
|
||||
ActivatedAbility(observer, _id, card, _cost, 0)
|
||||
|
||||
Reference in New Issue
Block a user