Removing "oldSchoolDeathtouch", as it seems Cockatrice and Thicket Basislisk are now softcoded. Zeth, Dr.Solomat, please review :)
This commit is contained in:
@@ -3452,70 +3452,6 @@ public:
|
||||
return a;
|
||||
}
|
||||
};
|
||||
|
||||
//Creatures that kill their blockers
|
||||
//Ex : Cockatrice
|
||||
class AOldSchoolDeathtouch: public MTGAbility
|
||||
{
|
||||
public:
|
||||
MTGCardInstance * opponents[20];
|
||||
int nbOpponents;
|
||||
AOldSchoolDeathtouch(int _id, MTGCardInstance * _source) :
|
||||
MTGAbility(_id, _source)
|
||||
{
|
||||
nbOpponents = 0;
|
||||
}
|
||||
|
||||
void Update(float dt)
|
||||
{
|
||||
if (newPhase != currentPhase)
|
||||
{
|
||||
if (newPhase == Constants::MTG_PHASE_COMBATDAMAGE)
|
||||
{
|
||||
nbOpponents = 0;
|
||||
MTGCardInstance * opponent = source->getNextOpponent();
|
||||
while (opponent && !opponent->hasSubtype("wall"))
|
||||
{
|
||||
opponents[nbOpponents] = opponent;
|
||||
nbOpponents++;
|
||||
opponent = source->getNextOpponent(opponent);
|
||||
}
|
||||
}
|
||||
else if (newPhase == Constants::MTG_PHASE_COMBATEND)
|
||||
{
|
||||
for (int i = 0; i < nbOpponents; i++)
|
||||
{
|
||||
if (game->isInPlay(opponents[i]))
|
||||
opponents[i]->destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int testDestroy()
|
||||
{
|
||||
if (!game->isInPlay(source) && currentPhase != Constants::MTG_PHASE_UNTAP)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return MTGAbility::testDestroy();
|
||||
}
|
||||
}
|
||||
|
||||
virtual ostream& toString(ostream& out) const
|
||||
{
|
||||
out << "AOldSchoolDeathtouch ::: opponents : " << opponents << " ; nbOpponents : " << nbOpponents << " (";
|
||||
return MTGAbility::toString(out) << ")";
|
||||
}
|
||||
AOldSchoolDeathtouch * clone() const
|
||||
{
|
||||
AOldSchoolDeathtouch * a = NEW AOldSchoolDeathtouch(*this);
|
||||
a->isClone = 1;
|
||||
return a;
|
||||
}
|
||||
};
|
||||
//bloodthirst ability------------------------------------------
|
||||
class ABloodThirst: public MTGAbility
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user