It is currently 29 Oct 2025, 22:34
   
Text Size

Hybrid Mana

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, 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 14 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 14 users online :: 0 registered, 0 hidden and 14 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 14 guests

Login Form