diff --git a/projects/mtg/src/AIPlayerBaka.cpp b/projects/mtg/src/AIPlayerBaka.cpp index 014eff7b6..1fdd47723 100644 --- a/projects/mtg/src/AIPlayerBaka.cpp +++ b/projects/mtg/src/AIPlayerBaka.cpp @@ -617,6 +617,13 @@ int OrderedAIAction::getEfficiency() efficiency = 0; } + else if (GenericRevealAbility * grA = dynamic_cast(a)) + { + if(grA->source->getAICustomCode().size()) + efficiency = 50 + (owner->getRandomGenerator()->random() % 50); + else + efficiency = 0; + } //At this point the "basic" efficiency is computed, we further tweak it depending on general decisions, independent of theAbility type MayAbility * may = dynamic_cast(ability); @@ -657,10 +664,6 @@ int OrderedAIAction::getEfficiency() { efficiency += 55; } - else if (dynamic_cast(a)) - { - efficiency += 55; - } SAFE_DELETE(transAbility); return efficiency; }