Removing some erroneous cards
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
8 posts
• Page 1 of 1
Removing some erroneous cards
by Sloth » 08 Sep 2010, 06:38
There are some cards with the whenever keyword that have some serious bugs that got reported more than once in the forum. Since the whenever keyword was coded by Beached As in a very independent way and me beeing incapable of seeing through this massive batch of code (which is scattered over a lot of files), I would suggest to remove the following cards until someone fixes these bugs of the whenever keyword:
Admonition Angel
Petravark
Ajani's Pridemate
Ageless Entity
I suggest to not completely remove them (not to break saved decks), but to remove them from random AI decks (with SVar:RemAIDeck:True) and giving them the Rarity "None", so they will no longer appear in quest mode.
I feel a little responsible since I added Petravark.
Are there more cards with serious bugs that should also get this treadment (maybe Ancestral Vision?)
Any other suggestions to fix this problem are welcome.
Admonition Angel
Petravark
Ajani's Pridemate
Ageless Entity
I suggest to not completely remove them (not to break saved decks), but to remove them from random AI decks (with SVar:RemAIDeck:True) and giving them the Rarity "None", so they will no longer appear in quest mode.
I feel a little responsible since I added Petravark.
Are there more cards with serious bugs that should also get this treadment (maybe Ancestral Vision?)
Any other suggestions to fix this problem are welcome.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Removing some erroneous cards
by Chris H. » 08 Sep 2010, 12:19
We have 22 cards which currently have a note as part of their spellText. Some of these notes refer to problems that are serious and these cards tend to get reported on the bug list.
The Spectral Searchlight NOTE refers to a fairly minor problem. Resuscitate is non-functional and this creates a bigger problem. Other cards with notes fall somewhere in between.
We can also add a note to the spellText to the 4 cards that you list. The notes help to warn users while creating constructed decks.
Giving cards a rarity of "SVar:Rarity:None" did not cause any problems in the brief test that I ran. But there may be unforeseen consequences.
The Spectral Searchlight NOTE refers to a fairly minor problem. Resuscitate is non-functional and this creates a bigger problem. Other cards with notes fall somewhere in between.
We can also add a note to the spellText to the 4 cards that you list. The notes help to warn users while creating constructed decks.
Giving cards a rarity of "SVar:Rarity:None" did not cause any problems in the brief test that I ran. But there may be unforeseen consequences.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Removing some erroneous cards
by Rob Cashwalker » 08 Sep 2010, 14:13
I purposely wrote the Rarity parser to allow for Rarity:None or essentially Rarity:{Anything other than Mythic, Rare, Uncommon, Common}. This will remove it from sealed, random deck and quest cardpools.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Removing some erroneous cards
by Sloth » 08 Sep 2010, 14:22
Adding a note is a good idea!Chris H. wrote:We can also add a note to the spellText to the 4 cards that you list. The notes help to warn users while creating constructed decks.
Giving cards a rarity of "SVar:Rarity:None" did not cause any problems in the brief test that I ran. But there may be unforeseen consequences.
Unless someone has any concerns, I will give this treatment to the following cards:
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Removing some erroneous cards
by Chris H. » 08 Sep 2010, 14:57
`Rob Cashwalker wrote:I purposely wrote the Rarity parser to allow for Rarity:None or essentially Rarity:{Anything other than Mythic, Rare, Uncommon, Common}. This will remove it from sealed, random deck and quest cardpools.
Thank you Rob. I see that you were looking ahead.

-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Removing some erroneous cards
by Chris H. » 08 Sep 2010, 15:01
`Sloth wrote:Adding a note is a good idea!
Unless someone has any concerns, I will give this treatment to the following cards:
I think that I added a NOTE to Ancestral Vision and Resuscitate at some point in the past. I also recently modified Card.getText() and a "\r\n" will now get inserted into the StringBuilder string sb just before the NOTE. This helps to separate the NOTE from the rest of the spellText description and makes it stand out.

-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Removing some erroneous cards
by Chris H. » 08 Sep 2010, 20:28
I added a NOTE, "SVar:RemAIDeck:True" and a "SVar:Rarity:None" to Admonition Angel; Ageless Entity; Ajani's Pridemate and Petravark.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Removing some erroneous cards
by AnonAT » 15 Sep 2010, 05:41
Wouldn't it be easier to just parse "NOTE" as "don't use anywhere without user's explicit request"?
- AnonAT
- Posts: 1
- Joined: 15 Sep 2010, 05:13
- Has thanked: 0 time
- Been thanked: 0 time
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 60 guests