Each turn the Bot calculates what the best move to make is
Each move has a intern value. Like playing a minion or dealing damage to the enemy face.
with the config file you overwrite certain aspects of the behavior of the bot in certain situations
This is the upgraded heropower were you get 2 minions for 2 mana so if you have 6 minions on board you would waste a potential minion if you would play the heropower now
"condition": "*", // means always
Quote:{
"GameCardId": "AT_132_PALADIN",
"ConfigComment": "Hero Power settings.",
"BeforePlayCardBonus":
{
"values":
[
{
"comment": "Natural boost to hero power",
"condition": "*",
"value": "20",
},
"comment": "If we have 6+ minions do not play",
"condition": "my_minions (count ())> = 6",
"value": "- 50",
Here is another Example
Quote:{
"GameCardId":"EX1_048",
"ConfigComment":"Spellbreaker config.",
"BeforeBattlecryTargetBonus":
{
"values":
[
{
"comment":"If you're targetting Voidlord (LOOT_368), Possessed Lackey (LOOT_306) or Carnivorous Cube (LOOT_161), gain a huge bonus.",
"condition": "my_target(count(), cardid = LOOT_368 | LOOT_306 | LOOT_161, silenced = false) > 0",
"value":"100",
},
{
"comment":"If you're targetting your Hydra, gain a huge bonus.",
"condition": "my_target(count(), cardid = UNG_087) > 0 AND opp_minions(count(), cardid = UNG_087) < 1",
"value":"20",
},
],
},
"InHandBonus":
{
"values":
[
{
"comment":"If you're against Warlock, and there is no Voidlord (LOOT_368), Possessed Lackey (LOOT_306) or Carnivorous Cube (LOOT_161) on the board, hold onto this.",
"condition": "opp_minions(count(), cardid = LOOT_368 | LOOT_306 | LOOT_161) < 1 AND opp_hero(count(), hero_class = warlock) > 0",
"value":"50",
}
],
},
}
This config states that enemy Voidlords are are better target for Spellbreaker your own Hydra for example.
Or that you should hold your Card for later if the enemy is a warlock