It is currently 07 Jul 2021, 14:40
   
Text Size

Combat_End and Creature.attacking

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, friarsol, Blacksmith, KrazyTheFox, Agetian, 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: 7575
Joined: 15 May 2010, 04:20
Has thanked: 242 times
Been thanked: 956 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 12 guests


Who is online

In total there are 12 users online :: 0 registered, 0 hidden and 12 guests (based on users active over the past 10 minutes)
Most users ever online was 1922 on 07 Jun 2021, 06:01

Users browsing this forum: No registered users and 12 guests

Login Form