It is currently 12 Sep 2025, 07:27
   
Text Size

A guide to the AI of planeswalkers using ability factories

Post MTG Forge Related Programming Questions Here

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

Re: A guide to the AI of planeswalkers using ability factori

Postby Sloth » 07 Nov 2011, 08:02

slapshot5 wrote:
friarsol wrote:slapshot, did you make code changes in AF_Sacrifice to support the second ability? http://cardforge.org/bugz/view.php?id=543
Uhh, No, I don't think so. I swear I copied something for that. But, I don't see what that would have been in a current search. I'll revert until it can be done.

-slapshot5
I think the easiest way would be to add a Sacrifice parameter to AF Destroy. It would look a bit strange, but the code change is the same as with the "NoRegen" parameter.

EDIT: We could also add a Destroy parameter to AF Sacrifice to support Imperial Edict and Wei Assassins.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: A guide to the AI of planeswalkers using ability factori

Postby ArsenalNut » 07 Nov 2011, 17:51

slapshot5 wrote:
friarsol wrote:slapshot, did you make code changes in AF_Sacrifice to support the second ability? http://cardforge.org/bugz/view.php?id=543
Uhh, No, I don't think so. I swear I copied something for that. But, I don't see what that would have been in a current search. I'll revert until it can be done.

-slapshot5
I bet you copied the second ability of Garruk the Veiled Curse. It had it a similar problem to Sarkhan the Mad before I checked in a fix. As a side note, the fixed second ability of Garruk the Veiled Curse plays kind of weird. The sacrifice AF doesn't wait for the human choice before displaying the library choice. There is TODO in the Sacrifice AF about this issue so I didn't think it needed a bug report.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: A guide to the AI of planeswalkers using ability factori

Postby Milod » 11 Dec 2011, 09:52

elspeth tirel summons creatures first then uses her ultimate ability to destroy her own creatures :shock:
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 44 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 44 users online :: 0 registered, 0 hidden and 44 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 44 guests

Login Form