From 6572a11848241b6b96489a2e317b51e52bd4e3a0 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Thu, 31 Mar 2011 14:50:44 +0000 Subject: [PATCH] changed the way aliases set id. the old method was fine when wagic only supported 200 cards, this is so far from the case now. this will avoid bugs being introduced when we add support for a card in soft code. what this was essentially doing was it would load every set but the hardcode card as soft code, and if you used the card which was originally hard coded, you get a bug where soft and hard code are both loaded. --- projects/mtg/src/MTGAbility.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 0547f4fe6..28c4a38e3 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -3181,11 +3181,15 @@ void AbilityFactory::addAbilities(int _id, Spell * spell) GameObserver * game = GameObserver::GetInstance(); MTGPlayerCards * zones = card->controller()->game; - int id = card->getId(); + int id = 0; if (card->alias) id = card->alias; switch (id) { + case 0: + { + break; + } case 1092: //Aladdin's lamp { AAladdinsLamp * ability = NEW AAladdinsLamp(_id, card);