It is currently 31 Oct 2025, 18:19
   
Text Size

Running checkStaticAbilities before ETB triggers happen

Post MTG Forge Related Programming Questions Here

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

Running checkStaticAbilities before ETB triggers happen

Postby Sloth » 13 Sep 2012, 20:28

Here is a post by Jaedayr
Jaedayr wrote:I have Creakwood Liege and Sigil Captain in play. At the beginning of my upkeep I get a 3/3 token wurm with 2 +1/+1 counters on it making it 5/5. I ran across this and wonder if this is a bug in Forge or not.

http://forums.mtgsalvation.com/showthre ... wood+liege
We currently don't run checkStaticAbilities before the triggers happen, if i remember correctly only because this causes "leaves the battlefield" triggers to go wrong. So my idea is to run checkStaticAbilities exclusively if it is a changezone trigger with destination battlefield.

Or was there another reason to not run checkStaticAbilities before triggers?
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Running checkStaticAbilities before ETB triggers happen

Postby Hellfish » 14 Sep 2012, 19:20

I *remember* no reason, no. Then again, I havn't messed with the trigger system since fixing Adaptive Automaton+Type Changers.
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

Re: Running checkStaticAbilities before ETB triggers happen

Postby Sloth » 16 Sep 2012, 20:42

Whenever i try to fix something related to triggers something else related to triggers breaks. I've commited the change, let's see what fails this time. :D
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Running checkStaticAbilities before ETB triggers happen

Postby Hellfish » 16 Sep 2012, 21:05

*Crosses fingers*
The old gal is getting a bit rusty in the wheel arches. :P
If another glut of free time falls into my lap I'll see about getting it all up to code.
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 19 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form