It is currently 05 Nov 2025, 12:10
   
Text Size

SVN Bug Reports

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins

Re: SVN Bug Reports

Postby 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.
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: SVN Bug Reports

Postby 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:

| 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

Postby Sloth » 12 Jun 2011, 15:27

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.
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.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Bug Reports

Postby Sloth » 12 Jun 2011, 15:32

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.
I can't follow you completely here. What's the problem with Sturdy Hatchling?
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Bug Reports

Postby jeffwadsworth » 12 Jun 2011, 15:53

Sloth wrote:
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.
I can't follow you completely here. What's the problem with Sturdy Hatchling?
Sturdy Hatchling uses M1M1 counters. If you check for its M1M1 counters within "hasProperty", it will be 0.
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

Postby SoulStorm » 12 Jun 2011, 15:54

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.
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.

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.
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: SVN Bug Reports

Postby Sloth » 12 Jun 2011, 16:17

jeffwadsworth wrote:
Sloth wrote:
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.
I can't follow you completely here. What's the problem with Sturdy Hatchling?
Sturdy Hatchling uses M1M1 counters. If you check for its M1M1 counters within "hasProperty", it will be 0.
I just tested using Chainbreaker on Sturdy Hatchling and he was a valid target for it.

| 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
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Bug Reports

Postby Sloth » 12 Jun 2011, 16:35

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

I've just tested your Chalice of the Void and it works perfectly fine.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Bug Reports

Postby jeffwadsworth » 12 Jun 2011, 16:51

Sloth wrote:
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

I've just tested your Chalice of the Void and it works perfectly fine.
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?
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

Postby 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
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

Postby lazylockie » 12 Jun 2011, 19:26

r9622

Mayael the Anima is:

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
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.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

Postby 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.
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

Postby Jaedayr » 12 Jun 2011, 20:12

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.
Wow, using one of the very old revisions I see! :D
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: SVN Bug Reports

Postby Jaedayr » 12 Jun 2011, 20:15

r9621

AI blocked Norwood Riders with Old Ghastbark and Safehold Duo.
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: SVN Bug Reports

Postby 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.
lazylockie
 
Posts: 508
Joined: 13 Jul 2010, 22:44
Has thanked: 74 times
Been thanked: 15 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 51 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 51 users online :: 0 registered, 0 hidden and 51 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 51 guests

Login Form