New game modes, bug fixes in primitives, improving AI, new planeswalkers type rule
New rules based on vanguard, 3 new random game modes, one is tribal and one uses any card in the game. Several corrections and bugs fixes. Cards with x in their cost and that can target any player used to crash the game. Teaching AI new things and changing values of efficiency. You can have multiple "Jace" planeswalkers, you can't have two of the exact same name (no two Jace, the mind sculptor).
This commit is contained in:
@@ -579,6 +579,8 @@ int ManaCost::hasAnotherCost()
|
||||
if(kicker)
|
||||
result = 1;
|
||||
//kicker is the only one ai knows for now, later hasAnotherCost() can be used to determine other cost types.
|
||||
if(Retrace || BuyBack || alternative || FlashBack || morph || suspend || Bestow)
|
||||
result = 1;
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -730,7 +732,7 @@ int ManaCost::getCost(int color)
|
||||
{
|
||||
if (cost.size() <= (size_t)color)
|
||||
{
|
||||
DebugTrace("Seems ManaCost was not properly initialized");
|
||||
DebugTrace("in GetCost Seems ManaCost was not properly initialized");
|
||||
return 0;
|
||||
}
|
||||
return cost[color];
|
||||
|
||||
Reference in New Issue
Block a user