It is currently 09 Sep 2025, 08:02
   
Text Size

Hybrid Mana

Post MTG Forge Related Programming Questions Here

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

Hybrid Mana

Postby mcrawford620 » 08 Oct 2012, 04:27

The sealed deck AI seems to have some problems with Hybrid Mana. For example, it would not put a Vassal Soul (1 W/U W/U) into a Black/White deck.

I think it's because CardColor.containsAllColorsFrom() treats the hybrid mana as requiring both colors to match. But that's not right for this purpose.

So that's as far as I got -- only enough to see the problem, but not enough to have any idea about how to fix it. Any suggestions?
mcrawford620
 
Posts: 112
Joined: 25 Jun 2012, 16:59
Has thanked: 55 times
Been thanked: 25 times

Re: Hybrid Mana

Postby Max mtg » 08 Oct 2012, 07:25

Hmm, interesting.
I have made a similiar thing in r17412
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Hybrid Mana

Postby mcrawford620 » 08 Oct 2012, 15:53

Awesome, thanks!
mcrawford620
 
Posts: 112
Joined: 25 Jun 2012, 16:59
Has thanked: 55 times
Been thanked: 25 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 39 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 39 users online :: 0 registered, 0 hidden and 39 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 39 guests

Login Form