using System;
using System.Collections.Generic;
using System.Text;

namespace HREngine.Bots
{
    class Sim_OG_202 : SimTemplate //* Mire Keeper
    {
        //Choose One - Summon a 2/2 Slime; or Gain an empty Mana Crystal.

        CardDB.Card kid = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.NAX11_03);

        public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
        {
            if (choice == 2 || (p.ownFandralStaghelm > 0 && own.own))
            {
                if (own.own)
                {
                    if (p.ownMaxMana > 8) p.evaluatePenality += 15;
                    p.ownMaxMana = Math.Min(10, p.ownMaxMana + 1);
                }
                else p.enemyMaxMana = Math.Min(10, p.enemyMaxMana + 1);
            }
            
            if (choice == 1 || (p.ownFandralStaghelm > 0 && own.own))
            {
                int pos = (own.own) ? p.ownMinions.Count : p.enemyMinions.Count;
                p.callKid(kid, pos, own.own);
            }
        }
    }
}