Removing "oldSchoolDeathtouch", as it seems Cockatrice and Thicket Basislisk are now softcoded. Zeth, Dr.Solomat, please review :)

This commit is contained in:
wagic.the.homebrew
2011-05-02 08:44:02 +00:00
parent 2c4efb9cd5
commit 13dd07973e
3 changed files with 2 additions and 88 deletions
-64
View File
@@ -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
{