Running checkStaticAbilities before ETB triggers happen
Post MTG Forge Related Programming Questions Here
	Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
			4 posts
			 • Page 1 of 1
		
	
Running checkStaticAbilities before ETB triggers happen
 by Sloth » 13 Sep 2012, 20:28
by Sloth » 13 Sep 2012, 20:28 
Here is a post by Jaedayr
Or was there another reason to not run checkStaticAbilities before triggers?
			
		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.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
Or was there another reason to not run checkStaticAbilities before triggers?
- 
				 
 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
 by Hellfish » 14 Sep 2012, 19:20
by 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
		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
- 
				 
 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
 by Sloth » 16 Sep 2012, 20:42
by 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.  
			
		
- 
				 
 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
 by Hellfish » 16 Sep 2012, 21:05
by Hellfish » 16 Sep 2012, 21:05 
*Crosses fingers*
The old gal is getting a bit rusty in the wheel arches.
If another glut of free time falls into my lap I'll see about getting it all up to code.
			The old gal is getting a bit rusty in the wheel arches.

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
		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
- 
				 
 Hellfish
- Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
			4 posts
			 • Page 1 of 1
		
	
Who is online
Users browsing this forum: No registered users and 19 guests
