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.
This commit is contained in:
omegablast2002@yahoo.com
2011-03-31 14:50:44 +00:00
parent eb010093fe
commit 6572a11848

View File

@@ -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);