also removed AConvertLandToCreatures class and its observers, becomes(/transforms(( already creates this effect

as a side effect of my recent changes, lands which come into play and then become creature on the same turn have summoning sickness as per MTG rules.
This commit is contained in:
omegablast2002@yahoo.com
2011-04-19 18:05:15 +00:00
parent 20590c3a0d
commit 29478f90b5
2 changed files with 0 additions and 64 deletions
-46
View File
@@ -2120,52 +2120,6 @@ public:
} }
}; };
//Converts lands to creatures (Kormus bell, Living lands)
class AConvertLandToCreatures: public ListMaintainerAbility
{
public:
int type;
int power, toughness;
AConvertLandToCreatures(int _id, MTGCardInstance * _source, const char * _type, int _power = 1, int _toughness = 1) :
ListMaintainerAbility(_id, _source), power(_power), toughness(_toughness)
{
type = Subtypes::subtypesList->find(_type);
}
int canBeInList(MTGCardInstance * card)
{
if (card->hasType(type) && game->isInPlay(card)) return 1;
return 0;
}
int added(MTGCardInstance * card)
{
card->power = 1;
card->setToughness(1);
card->setSubtype("creature");
card->summoningSickness = 0;
return 1;
}
int removed(MTGCardInstance * card)
{
card->removeType("creature");
return 1;
}
virtual ostream& toString(ostream& out) const
{
out << "AConvertLandToCreatures ::: power : " << power << " ; toughness : " << toughness << " ; type : " << type << " (";
return ListMaintainerAbility::toString(out) << ")";
}
AConvertLandToCreatures * clone() const
{
AConvertLandToCreatures * a = NEW AConvertLandToCreatures(*this);
a->isClone = 1;
return a;
}
};
//Generic Kird Ape //Generic Kird Ape
class AAsLongAs: public ListMaintainerAbility, public NestedAbility class AAsLongAs: public ListMaintainerAbility, public NestedAbility
{ {
-18
View File
@@ -3379,11 +3379,6 @@ void AbilityFactory::addAbilities(int _id, Spell * spell)
game->addObserver(NEW AJandorsRing(_id, card)); game->addObserver(NEW AJandorsRing(_id, card));
break; break;
} }
case 1121: //Kormus Bell
{
game->addObserver(NEW AConvertLandToCreatures(id, card, "swamp"));
break;
}
case 1254: //Kudzu case 1254: //Kudzu
{ {
game->addObserver(NEW AKudzu(id, card, card->target)); game->addObserver(NEW AKudzu(id, card, card->target));
@@ -3402,12 +3397,6 @@ void AbilityFactory::addAbilities(int _id, Spell * spell)
} }
break; break;
} }
case 1259: //Living lands
{
game->addObserver(NEW AConvertLandToCreatures(id, card, "forest"));
break;
}
case 1124: //Mana Vault (the rest is softcoded!) case 1124: //Mana Vault (the rest is softcoded!)
{ {
game->addObserver(NEW ARegularLifeModifierAura(_id + 2, card, card, Constants::MTG_PHASE_DRAW, -1, 1)); game->addObserver(NEW ARegularLifeModifierAura(_id + 2, card, card, Constants::MTG_PHASE_DRAW, -1, 1));
@@ -3629,13 +3618,6 @@ void AbilityFactory::addAbilities(int _id, Spell * spell)
} }
break; break;
} }
//Addons Legends
case 1533: //Livingplane
{
game->addObserver(NEW AConvertLandToCreatures(id, card, "land"));
break;
}
case 1480: //Energy Tap case 1480: //Energy Tap
{ {
card->target->tap(); card->target->tap();