Corrected Array in MTGDefinitions that is the cause why the landshome ability was not functioning.

No the landshome function well (tested foresthome on gorillapack)
This commit is contained in:
laurent.rabouin
2008-11-08 16:24:48 +00:00
parent 4d798fe527
commit 45f3d6fe6e
2 changed files with 12 additions and 16 deletions
+5 -9
View File
@@ -1368,25 +1368,21 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
game->addObserver(NEW AExalted(_id, card));
}
// Tested the two variant none is working properly I don't know why ??
// Tested works the first r10 did not function because of the mistake in the array of the definition
if (card->basicAbilities[FORESTHOME]){
game->addObserver(NEW AStrongLandLinkCreature(_id, card, "forest"));
}
if (card->basicAbilities[ISLANDHOME]){
AStrongLandLinkCreature * ability = NEW AStrongLandLinkCreature(_id, card,"island");
game->addObserver(ability);
game->addObserver(NEW AStrongLandLinkCreature(_id, card, "island"));
}
if (card->basicAbilities[MOUNTAINHOME]){
AStrongLandLinkCreature * ability = NEW AStrongLandLinkCreature(_id, card,"moutain");
game->addObserver(ability);
game->addObserver(NEW AStrongLandLinkCreature(_id, card,"moutain"));
}
if (card->basicAbilities[SWAMPHOME]){
AStrongLandLinkCreature * ability = NEW AStrongLandLinkCreature(_id, card,"swamp");
game->addObserver(ability);
game->addObserver(NEW AStrongLandLinkCreature(_id, card,"swamp"));
}
if (card->basicAbilities[PLAINSHOME]){
AStrongLandLinkCreature * ability = NEW AStrongLandLinkCreature(_id, card,"plains");
game->addObserver(ability);
game->addObserver(NEW AStrongLandLinkCreature(_id, card,"plains"));
}
//Instants are put in the graveyard automatically if that's not already done
if (!putSourceInGraveyard){