Fixed primitives, changed type of "isFlipped" card variable from bool to int and fixed a related bug on targeting cards with "isFlipped" attribute, improved "disturb" ability (now fi you counter a card casted with disturb it correctly goes to exile), added "decayed" ability, added two new zone alias "mycommandplay" and "opponentcommandplay" for targeting Battlefield and CommandZone at the same time.
This commit is contained in:
@@ -635,7 +635,7 @@ int OrderedAIAction::getEfficiency()
|
||||
{
|
||||
efficiency = 0; // AI does not have to use the doubleside ability to avoid loops but it can randomly choose to flip card and cast its back side.
|
||||
if(std::rand() % 2)
|
||||
ats->source->isFlipped = !ats->source->isFlipped;
|
||||
ats->source->isFlipped = (ats->source->isFlipped > 0)?0:1;
|
||||
}
|
||||
else if (ATokenCreator * atc = dynamic_cast<ATokenCreator *>(a))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user