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

namespace OpenAI
{
    class Sim_AT_132_HUNTER : SimTemplate //* Ballista Shot
    {

        //    Deal $3 damage to the enemy hero

		public override void OnCardPlay(Playfield p, bool ownplay, Minion target, int choice)
		{
            int dmg = 3;

            if (ownplay)
            {
                dmg += p.anzOwnFallenHeros;
                if (p.doublepriest >= 1) dmg *= (2 * p.doublepriest);
                p.minionGetDamageOrHeal(target, dmg);
            }
            else
            {
                dmg += p.anzEnemyFallenHeros;
                if (p.enemydoublepriest >= 1) dmg *= (2 * p.enemydoublepriest);
                p.minionGetDamageOrHeal(target, dmg);
            }

		}

	}
}