Targeting Fix
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
2 posts
• Page 1 of 1
Targeting Fix
by friarsol » 26 Jul 2012, 03:01
I have a potential fix for Targeting. Basically what I'm doing is recording the target card + its timestamp, if the card changes zone before the SA resolves the timestamp will be different and (should) fizzle. I've done some rudimentary testing with Cloudshift and targeted instants. This probably won't get committed till at least Friday, so if you have any specific ideas of what I should test feel free to post them.
During the fizzle check if a target is not timestamped as the one that was targeted, it will be removed from targets. Since this happens in the time of fizzling (just before spell resolution) I don't see any issues with this, but again if you can think of potential issue let me know.
I'm not sure how many SAs we have left that aren't using the Target object, but I won't really be able to handle the targeting appropriately for these. I took a quick look to see what uses SA.setTargetCard() and a bunch of these seem like they should be able to migrate over to Target objects (or possibly are already useless do to being scripted now).
During the fizzle check if a target is not timestamped as the one that was targeted, it will be removed from targets. Since this happens in the time of fizzling (just before spell resolution) I don't see any issues with this, but again if you can think of potential issue let me know.
I'm not sure how many SAs we have left that aren't using the Target object, but I won't really be able to handle the targeting appropriately for these. I took a quick look to see what uses SA.setTargetCard() and a bunch of these seem like they should be able to migrate over to Target objects (or possibly are already useless do to being scripted now).
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 52 guests