Hybrid Mana
Post MTG Forge Related Programming Questions Here
	Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
			3 posts
			 • Page 1 of 1
		
	
Hybrid Mana
 by mcrawford620 » 08 Oct 2012, 04:27
by 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?
			
		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
 by Max mtg » 08 Oct 2012, 07:25
by Max mtg » 08 Oct 2012, 07:25 
Hmm, interesting.
I have made a similiar thing in r17412
			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
			3 posts
			 • Page 1 of 1
		
	
Who is online
Users browsing this forum: Timothysow and 36 guests
