It is currently 30 Oct 2025, 22:08
   
Text Size

Cards with counter related triggered abilities change zone

Post MTG Forge Related Programming Questions Here

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

Cards with counter related triggered abilities change zone

Postby Sloth » 14 Jun 2011, 14:52

Here is a possible fix for the bugs relating cards with counter related triggered abilities changing zones (Chalice of the Void, Allies):
1. copyCard will now copy all counters (used in changeZone).
2. if the destination is not battlefield remove all counters (like it used to be).

I coded it up, but before I'm going to submit it, I ask you:
Are there any problems with this?
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Cards with counter related triggered abilities change zo

Postby jeffwadsworth » 14 Jun 2011, 16:00

Sloth wrote:Here is a possible fix for the bugs relating cards with counter related triggered abilities changing zones (Chalice of the Void, Allies):
1. copyCard will now copy all counters (used in changeZone).
2. if the destination is not battlefield remove all counters (like it used to be).

I coded it up, but before I'm going to submit it, I ask you:
Are there any problems with this?
Good find.
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: Cards with counter related triggered abilities change zo

Postby Sloth » 14 Jun 2011, 20:41

I've submitted the fix. Report if you notice anything wrong.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Cards with counter related triggered abilities change zo

Postby Hellfish » 15 Jun 2011, 09:18

Once we implement Commander cards, Skullbriar, the Walking Grave could do with a scriptable exemption from the removal of counters.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 33 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 33 users online :: 0 registered, 0 hidden and 33 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 33 guests

Login Form