SVN Bug Reports
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
Re: SVN Bug Reports
by SoulStorm » 12 Jun 2011, 14:41
: Deathbringer Liege causes spell permanents to disappear when cast. So for example, I cast Teysa, Orzhov Scion while Deathbringer Liege is on the battlefield. The Liege's triggers work properly, but Teysa, Orzhov Scion never enters the battlefield. Nor does Teysa, Orzhov Scion go to any other zone, the card is just gone.
Note that this doesn't happen every time you play Deathbringer Liege. However, once it starts happening, it happens every time.
Note that this doesn't happen every time you play Deathbringer Liege. However, once it starts happening, it happens every time.
Re: SVN Bug Reports
by jeffwadsworth » 12 Jun 2011, 15:09
While fooling around with Chalice of the Void, I noticed the following issue.
If a card uses a trigger that utilizes the "hasProperty" method within Card.java, the "getCounters" int value is 0, no matter what is set for within "etbCounter". I checked both Chalice of the Void and Sturdy Hatchling. Chalice of the Void uses "CHARGE" counters and checks ValidCard for cmc. Sturdy Hatchling uses M1M1 and checks for Blue/Green. Scripts below for clarity.
Chalice of the Void:
Sturdy Hatchling:
If a card uses a trigger that utilizes the "hasProperty" method within Card.java, the "getCounters" int value is 0, no matter what is set for within "etbCounter". I checked both Chalice of the Void and Sturdy Hatchling. Chalice of the Void uses "CHARGE" counters and checks ValidCard for cmc. Sturdy Hatchling uses M1M1 and checks for Blue/Green. Scripts below for clarity.
Chalice of the Void:
- | Open
- Name:Chalice of the Void
ManaCost:X X
Types:Artifact
Text:no text
K:etbCounter:CHARGE:X
T:Mode$ SpellCast | ValidCard$ Card.cmcEQY | ValidActivatingPlayer$ Each | TriggerZones$ Battlefield | Execute$ TrigCounter | TriggerDescription$ Whenever a player casts a spell with converted mana cost equal to the number of charge counters on CARDNAME, counter that spell.
SVar:TrigCounter:AB$Counter | Cost$ 0 | Defined$ TriggeredSpellAbility
SVar:X:Count$xPaid
SVar:Y:Count$CardCounters.CHARGE
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/chalice_of_the_void.jpg
SetInfo:MRD|Rare|http://magiccards.info/scans/en/mi/150.jpg
End
Sturdy Hatchling:
- | Open
- Name:Sturdy Hatchling
ManaCost:3 GU
Types:Creature Elemental
Text:
PT:6/6
K:etbCounter:M1M1:4
A:AB$ Pump | Cost$ GU | KW$ Shroud | SpellDescription$ CARDNAME gains shroud until end of turn.
T:Mode$ SpellCast | ValidCard$ Card.Green | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigRemoveCounter | TriggerDescription$ Whenever you cast a green spell, remove a -1/-1 counter from CARDNAME.
T:Mode$ SpellCast | ValidCard$ Card.Blue | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigRemoveCounter | TriggerDescription$ Whenever you cast a blue spell, remove a -1/-1 counter from CARDNAME.
SVar:TrigRemoveCounter:AB$RemoveCounter | Cost$ 0 | Defined$ Self | CounterType$ M1M1 | CounterNum$ 1
SVar:BuffedBy:Spell.Blue,Spell.Green
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/sturdy_hatchling.jpg
SetInfo:EVE|Uncommon|http://magiccards.info/scans/en/eve/163.jpg
End
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: SVN Bug Reports
by Sloth » 12 Jun 2011, 15:27
This seems to be another occurrence of the bug that a human input (selecting targets, paying mana) kills the last spell (not abilities) on the stack.SoulStorm wrote:: Deathbringer Liege causes spell permanents to disappear when cast. So for example, I cast Teysa, Orzhov Scion while Deathbringer Liege is on the battlefield. The Liege's triggers work properly, but Teysa, Orzhov Scion never enters the battlefield. Nor does Teysa, Orzhov Scion go to any other zone, the card is just gone.
Note that this doesn't happen every time you play Deathbringer Liege. However, once it starts happening, it happens every time.
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: SVN Bug Reports
by Sloth » 12 Jun 2011, 15:32
I can't follow you completely here. What's the problem with Sturdy Hatchling?jeffwadsworth wrote:While fooling around with Chalice of the Void, I noticed the following issue.
If a card uses a trigger that utilizes the "hasProperty" method within Card.java, the "getCounters" int value is 0, no matter what is set for within "etbCounter". I checked both Chalice of the Void and Sturdy Hatchling. Chalice of the Void uses "CHARGE" counters and checks ValidCard for cmc. Sturdy Hatchling uses M1M1 and checks for Blue/Green. Scripts below for clarity.
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: SVN Bug Reports
by jeffwadsworth » 12 Jun 2011, 15:53
Sturdy Hatchling uses M1M1 counters. If you check for its M1M1 counters within "hasProperty", it will be 0.Sloth wrote:I can't follow you completely here. What's the problem with Sturdy Hatchling?jeffwadsworth wrote:While fooling around with Chalice of the Void, I noticed the following issue.
If a card uses a trigger that utilizes the "hasProperty" method within Card.java, the "getCounters" int value is 0, no matter what is set for within "etbCounter". I checked both Chalice of the Void and Sturdy Hatchling. Chalice of the Void uses "CHARGE" counters and checks ValidCard for cmc. Sturdy Hatchling uses M1M1 and checks for Blue/Green. Scripts below for clarity.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: SVN Bug Reports
by SoulStorm » 12 Jun 2011, 15:54
I see now that at least a couple of other people have posted concerning this bug. Must be fairly recent as I've never seen anything like it before.Sloth wrote:This seems to be another occurrence of the bug that a human input (selecting targets, paying mana) kills the last spell (not abilities) on the stack.
However, I've seen the "phantom card" bug (having unusable cards in your hand) lots of times, though only with clone type cards until recently. There seems to be a relationship between these two bugs. I'm sure if there is you're already aware of it Sloth.
Re: SVN Bug Reports
by Sloth » 12 Jun 2011, 16:17
I just tested using Chainbreaker on Sturdy Hatchling and he was a valid target for it.jeffwadsworth wrote:Sturdy Hatchling uses M1M1 counters. If you check for its M1M1 counters within "hasProperty", it will be 0.Sloth wrote:I can't follow you completely here. What's the problem with Sturdy Hatchling?jeffwadsworth wrote:While fooling around with Chalice of the Void, I noticed the following issue.
If a card uses a trigger that utilizes the "hasProperty" method within Card.java, the "getCounters" int value is 0, no matter what is set for within "etbCounter". I checked both Chalice of the Void and Sturdy Hatchling. Chalice of the Void uses "CHARGE" counters and checks ValidCard for cmc. Sturdy Hatchling uses M1M1 and checks for Blue/Green. Scripts below for clarity.
- | Open
- Name:Chainbreaker
ManaCost:2
Types:Artifact Creature Scarecrow
Text:no text
PT:3/3
K:etbCounter:M1M1:2
A:AB$ RemoveCounter | Cost$ 3 T | ValidTgts$ Creature.countersGE1M1M1 | TgtPrompt$ Select target creature | CounterType$ M1M1 | CounterNum$ 1 | SpellDescription$ Remove a -1/-1 counter from target creature.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/chainbreaker.jpg
SetInfo:SHM|Common|http://magiccards.info/scans/en/shm/249.jpg
End
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: SVN Bug Reports
by Sloth » 12 Jun 2011, 16:35
I've just tested your Chalice of the Void and it works perfectly fine.jeffwadsworth wrote:While fooling around with Chalice of the Void, I noticed the following issue.
If a card uses a trigger that utilizes the "hasProperty" method within Card.java, the "getCounters" int value is 0, no matter what is set for within "etbCounter". I checked both Chalice of the Void and Sturdy Hatchling. Chalice of the Void uses "CHARGE" counters and checks ValidCard for cmc. Sturdy Hatchling uses M1M1 and checks for Blue/Green. Scripts below for clarity.
Chalice of the Void:
- | Open
- Name:Chalice of the Void
ManaCost:X X
Types:Artifact
Text:no text
K:etbCounter:CHARGE:X
T:Mode$ SpellCast | ValidCard$ Card.cmcEQY | ValidActivatingPlayer$ Each | TriggerZones$ Battlefield | Execute$ TrigCounter | TriggerDescription$ Whenever a player casts a spell with converted mana cost equal to the number of charge counters on CARDNAME, counter that spell.
SVar:TrigCounter:AB$Counter | Cost$ 0 | Defined$ TriggeredSpellAbility
SVar:X:Count$xPaid
SVar:Y:Count$CardCounters.CHARGE
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/chalice_of_the_void.jpg
SetInfo:MRD|Rare|http://magiccards.info/scans/en/mi/150.jpg
End
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: SVN Bug Reports
by jeffwadsworth » 12 Jun 2011, 16:51
Ok...this is weird. I assumed my src installation was bad and reinstalled everything from scratch. Checked Chalice of the Void again with the same bad result. Using version 9617. Sloth, would you mind adding it?Sloth wrote:I've just tested your Chalice of the Void and it works perfectly fine.jeffwadsworth wrote:While fooling around with Chalice of the Void, I noticed the following issue.
If a card uses a trigger that utilizes the "hasProperty" method within Card.java, the "getCounters" int value is 0, no matter what is set for within "etbCounter". I checked both Chalice of the Void and Sturdy Hatchling. Chalice of the Void uses "CHARGE" counters and checks ValidCard for cmc. Sturdy Hatchling uses M1M1 and checks for Blue/Green. Scripts below for clarity.
Chalice of the Void:
- | Open
- Name:Chalice of the Void
ManaCost:X X
Types:Artifact
Text:no text
K:etbCounter:CHARGE:X
T:Mode$ SpellCast | ValidCard$ Card.cmcEQY | ValidActivatingPlayer$ Each | TriggerZones$ Battlefield | Execute$ TrigCounter | TriggerDescription$ Whenever a player casts a spell with converted mana cost equal to the number of charge counters on CARDNAME, counter that spell.
SVar:TrigCounter:AB$Counter | Cost$ 0 | Defined$ TriggeredSpellAbility
SVar:X:Count$xPaid
SVar:Y:Count$CardCounters.CHARGE
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/chalice_of_the_void.jpg
SetInfo:MRD|Rare|http://magiccards.info/scans/en/mi/150.jpg
End
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: SVN Bug Reports
by friarsol » 12 Jun 2011, 18:52
r9621
I can't remember if I've seen this one reported or not. I steal a Penumbra Bobcat with Slave of Bolas. When the Cat is sacrificed the AI gets the token instead of me (the controller of the effect)
Edit: Fixing Bobcat's name
I can't remember if I've seen this one reported or not. I steal a Penumbra Bobcat with Slave of Bolas. When the Cat is sacrificed the AI gets the token instead of me (the controller of the effect)
Edit: Fixing Bobcat's name
Last edited by friarsol on 12 Jun 2011, 19:42, edited 1 time in total.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: SVN Bug Reports
by lazylockie » 12 Jun 2011, 19:26
r9622
Mayael the Anima is:
Mayael the Anima is:
and should be:Name:Mayael the Anima
ManaCost:R G W
Types:Legendary Creature Elf Shaman
Text:no text
PT:2/3
A:AB$ Dig | Cost$ 3 R G W T | DigNum$ 5 | ChangeNum$ 1 | Optional$ True | ChangeValid$ Creature.powerLE5 | DestinationZone$ Battlefield | SpellDescription$ Look at the top five cards of your library. You may put a creature card with power 5 or greater from among them onto the battlefield. Put the rest on the bottom of your library in any order.
SVar:RemAIDeck:True
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/mayael_the_anima.jpg
SetInfo:ALA|Mythic|http://magiccards.info/scans/en/ala/179.jpg
End
Name:Mayael the Anima
ManaCost:R G W
Types:Legendary Creature Elf Shaman
Text:no text
PT:2/3
A:AB$ Dig | Cost$ 3 R G W T | DigNum$ 5 | ChangeNum$ 1 | Optional$ True | ChangeValid$ Creature.powerGE5 | DestinationZone$ Battlefield | SpellDescription$ Look at the top five cards of your library. You may put a creature card with power 5 or greater from among them onto the battlefield. Put the rest on the bottom of your library in any order.
SVar:RemAIDeck:True
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/mayael_the_anima.jpg
SetInfo:ALA|Mythic|http://magiccards.info/scans/en/ala/179.jpg
End
- lazylockie
- Posts: 508
- Joined: 13 Jul 2010, 22:44
- Has thanked: 74 times
- Been thanked: 15 times
Re: SVN Bug Reports
by friarsol » 12 Jun 2011, 19:57
r9621
Pyre Zombie in my graveyard. Prompted if I want to Pay. I say yes, Zombie goes straight to my hand instead of me getting the payment prompter, seems similar to some other reported issues.
Edit: Revision fixing, just for Jaedayr.
Pyre Zombie in my graveyard. Prompted if I want to Pay. I say yes, Zombie goes straight to my hand instead of me getting the payment prompter, seems similar to some other reported issues.
Edit: Revision fixing, just for Jaedayr.
Last edited by friarsol on 12 Jun 2011, 20:15, edited 1 time in total.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: SVN Bug Reports
by Jaedayr » 12 Jun 2011, 20:12
Wow, using one of the very old revisions I see!friarsol wrote:r6921
Pyre Zombie in my graveyard. Prompted if I want to Pay. I say yes, Zombie goes straight to my hand instead of me getting the payment prompter, seems similar to some other reported issues.
Re: SVN Bug Reports
by lazylockie » 12 Jun 2011, 20:25
r9622
Allies are still triggering twice when themselves enter the battlefield (since revision 9000 I think). So a lone Hada Freeblade starts at 2/3, instead of 1/2.
Allies are still triggering twice when themselves enter the battlefield (since revision 9000 I think). So a lone Hada Freeblade starts at 2/3, instead of 1/2.
- lazylockie
- Posts: 508
- Joined: 13 Jul 2010, 22:44
- Has thanked: 74 times
- Been thanked: 15 times
Who is online
Users browsing this forum: No registered users and 51 guests