It is currently 23 May 2024, 16:33
   
Text Size

Combat_End and Creature.attacking

Post MTG Forge Related Programming Questions Here

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

Combat_End and Creature.attacking

Postby slapshot5 » 01 Nov 2010, 21:02

I am trying to use an ability with the following targeting at the End_Combat phase:

Code: Select all
final String Tgts[] = {"Creature.attacking"};
Target target = new Target("TgtV", "Select target attacking creature.", Tgts);       
But, it won't let me select an attacking creature. Has the Combat reset code already been called at this point? If so, how do we change it so End_Combat spells can still use Creature.attacking and Creature.blocking?

Thanks,
slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: Combat_End and Creature.attacking

Postby friarsol » 01 Nov 2010, 21:24

Probably just some leftover code when I was moving things around. Fix is coming up in a few.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Combat_End and Creature.attacking

Postby slapshot5 » 01 Nov 2010, 21:29

friarsol wrote:Probably just some leftover code when I was moving things around. Fix is coming up in a few.
Works like a charm. Thanks!
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 41 guests


Who is online

In total there are 41 users online :: 0 registered, 0 hidden and 41 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 41 guests

Login Form