SVN Bug Reports
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: SVN Bug Reports
by slapshot5 » 27 Feb 2011, 14:13
r6871
Two bugs
1. isNotPresent is implemented for static pumps (like stPumpSelf), but not in AbilityFactory. We should probably just implement it in AF as well to be consistent. Agree?
2. static effects (like stPumpSelf) are not checked when a land is tapped, so stPumpSelf with a condition of "isNotPresent Land.untapped+YouCtrl" will not give the pump after the land is tapped. Something else needs to happen, like a spell being played. I'm a little worried about the performance hit this may cause if added after lands are tapped. Hopefully, there is some (lots of) optimization that can be done in the static effects code...
-slapshot5
Two bugs
1. isNotPresent is implemented for static pumps (like stPumpSelf), but not in AbilityFactory. We should probably just implement it in AF as well to be consistent. Agree?
2. static effects (like stPumpSelf) are not checked when a land is tapped, so stPumpSelf with a condition of "isNotPresent Land.untapped+YouCtrl" will not give the pump after the land is tapped. Something else needs to happen, like a spell being played. I'm a little worried about the performance hit this may cause if added after lands are tapped. Hopefully, there is some (lots of) optimization that can be done in the static effects code...
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: SVN Bug Reports
by jeffwadsworth » 27 Feb 2011, 17:54
Cheers.
Last edited by jeffwadsworth on 28 Feb 2011, 06:49, edited 2 times in total.
- 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 Hellfish » 27 Feb 2011, 19:41
Has Wall of Junk been added? Worrying news to me, since delayed triggers aren't supported at all yet.
EDIT: I will likely tend to this pretty soon though.
EDIT: I will likely tend to this pretty soon though.
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: SVN Bug Reports
by friarsol » 27 Feb 2011, 21:55
I just added this in, it uses the same code as IsPresent, just defaults the comparison to EQ0.slapshot5 wrote:r6871
1. isNotPresent is implemented for static pumps (like stPumpSelf), but not in AbilityFactory. We should probably just implement it in AF as well to be consistent. Agree?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: SVN Bug Reports
by friarsol » 28 Feb 2011, 00:32
I think in the case where I'm activating a SA, static effects shouldn't be checked until we're finished activating. (I believe this code is already in place) In the case where you just tap lands to float mana it might be worth doing some tests to see if how big of a hit this would be.slapshot5 wrote:r6871
2. static effects (like stPumpSelf) are not checked when a land is tapped, so stPumpSelf with a condition of "isNotPresent Land.untapped+YouCtrl" will not give the pump after the land is tapped. Something else needs to happen, like a spell being played. I'm a little worried about the performance hit this may cause if added after lands are tapped. Hopefully, there is some (lots of) optimization that can be done in the static effects code...
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: SVN Bug Reports
by jeffwadsworth » 28 Feb 2011, 06:36
I scripted Wall of Junk...as far as I can tell, it works exactly as intended.Hellfish wrote:Has Wall of Junk been added? Worrying news to me, since delayed triggers aren't supported at all yet.
EDIT: I will likely tend to this pretty soon though.
- 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 Hellfish » 28 Feb 2011, 12:37
Alright, yeah, it's functionally correct, but not how delayed triggered abilities should really happen.
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: SVN Bug Reports
by friarsol » 28 Feb 2011, 14:52
It's always the corner cases that get you.Hellfish wrote:Alright, yeah, it's functionally correct, but not how delayed triggered abilities should really happen.
There is a situation where if the Wall of Junk is Removed from Combat it wouldn't be bounced with how it is currently scripted, but should be bounced since it gained a Delayed Trigger just for blocking.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: SVN Bug Reports
by Hellfish » 28 Feb 2011, 15:04
Yeah, I'm still going to implement the delayed trigger system. Tonight, possibly tomorrow, depending on how smoothly it goes.
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: SVN Bug Reports
by Replika » 01 Mar 2011, 20:29
r6955
Ninjutsu is working almost correct now. The only thing it does wrong is that the Ninja that came into play with it is not considered as an unblocked creature.
For example: My Ornithopter is attacking unblocked, so I ninjutsu in my Ninja of the Deep Hours and pass priority to my opponent, who casts Lightning Bolt on my Ninja. I have another one in hand and should be able to ninjutsu that one in for the first one. However, Forge does not allow that.
Side note: Are we going to get the Pact cycle now that you are working on delayed triggers?
Ninjutsu is working almost correct now. The only thing it does wrong is that the Ninja that came into play with it is not considered as an unblocked creature.
For example: My Ornithopter is attacking unblocked, so I ninjutsu in my Ninja of the Deep Hours and pass priority to my opponent, who casts Lightning Bolt on my Ninja. I have another one in hand and should be able to ninjutsu that one in for the first one. However, Forge does not allow that.
Side note: Are we going to get the Pact cycle now that you are working on delayed triggers?
Re: SVN Bug Reports
by Hellfish » 01 Mar 2011, 20:40
For the pacts we'd also need something like a Win/Lose AbilityFactory and a little more trigger groudnwork, but this is a step in the right direction.
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: SVN Bug Reports
by Replika » 02 Mar 2011, 13:11
r6987
See Beyond is doing "Draw two, shuffle your library, then put 1 card on top of it" and not what it is supposed to.
Squadron Hawk (or search abilities in general?) doesn't let me search, fail to find and shuffle if I don't have any Hawks to find. In other words: I can't use the trigger of the last Hawk just to shuffle my library.
A Flayer Husk equipping its Germ token does not get a new one after getting bounced (with Kor Skyfisher) and replayed, even after waiting a turn before recasting it. The living weapon ability triggers but does not give a token.
Goblin Bushwhacker needs the play main 1 line. The AI often casts it kicked after combat.
When low on life, the AI starts holding back ground blockers instead of attacking with them even if my attackers are flying and the AI can't block them anyways.
See Beyond is doing "Draw two, shuffle your library, then put 1 card on top of it" and not what it is supposed to.
Squadron Hawk (or search abilities in general?) doesn't let me search, fail to find and shuffle if I don't have any Hawks to find. In other words: I can't use the trigger of the last Hawk just to shuffle my library.
A Flayer Husk equipping its Germ token does not get a new one after getting bounced (with Kor Skyfisher) and replayed, even after waiting a turn before recasting it. The living weapon ability triggers but does not give a token.
Goblin Bushwhacker needs the play main 1 line. The AI often casts it kicked after combat.
When low on life, the AI starts holding back ground blockers instead of attacking with them even if my attackers are flying and the AI can't block them anyways.
Last edited by Replika on 02 Mar 2011, 16:17, edited 2 times in total.
Re: SVN Bug Reports
by Corwin72 » 02 Mar 2011, 15:03
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: SVN Bug Reports
by jeffwadsworth » 02 Mar 2011, 18:27
The trigger "AttackerUnblocked" is apparently not working.
- 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 slapshot5 » 02 Mar 2011, 19:13
That's going to take someone who knows the combat code.jeffwadsworth wrote:The trigger "AttackerUnblocked" is apparently not working.
In Combat.dealAssignedDamage, the:
- Code: Select all
CardList unblocked = new CardList(bFirstStrike ? AllZone.Combat.getUnblockedAttackers() :
AllZone.Combat.getUnblockedFirstStrikeAttackers());
//my debug code
System.out.println("unblocked.size(): "+unblocked.size());
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Who is online
Users browsing this forum: No registered users and 8 guests