It is currently 10 Sep 2025, 17:53
   
Text Size

Targeting Fix

Post MTG Forge Related Programming Questions Here

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

Targeting Fix

Postby 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).
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Targeting Fix

Postby Sloth » 26 Jul 2012, 05:43

Sounds good Sol. Should work. Thumbs up.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 52 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 52 users online :: 0 registered, 0 hidden and 52 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 52 guests

Login Form