using System;

class Speletajs
{
    public string Name;
    public int HP;
    public int Damage;
    public int MP;
    public int WalkSpeed;
    public int CD;

    public Speletajs(string name, int hp, int damage, int mp, int walkSpeed, int cd)
    {
        Name = name;
        HP = hp;
        Damage = damage;
        MP = mp;
        WalkSpeed = walkSpeed;
        CD = cd;
    }
}

class Magija
{
    public string Name;
    public int Damage;
    public int Radius;
    public string Type;

    public Magija(string name, int damage, int radius, string type)
    {
        Name = name;
        Damage = damage;
        Radius = radius;
        Type = type;
    }
}

class Program
{
    static void CastMagic(Speletajs Speletajs, Speletajs Ienaidnieks, Magija Magija)
    {
        Console.WriteLine("----------------------------------");
        Console.WriteLine(Speletajs.Name + " izmanto " + Magija.Name + " uz " + Ienaidnieks.Name);

        if (Magija.Type == "Heal")
        {
            Console.WriteLine(Speletajs.Name + " HP = " + Speletajs.HP + " + " + Magija.Damage);
            Speletajs.HP = Speletajs.HP + Magija.Damage;
            Console.WriteLine("Rezultāts: " + Speletajs.Name + " HP = " + Speletajs.HP);
        }
        else
        {
            Console.WriteLine(Ienaidnieks.Name + " HP = " + Ienaidnieks.HP + " - " + Magija.Damage);
            Ienaidnieks.HP = Ienaidnieks.HP - Magija.Damage;
            Console.WriteLine("Rezultāts: " + Ienaidnieks.Name + " HP = " + Ienaidnieks.HP);
        }

        SpecialEffect(Speletajs, Ienaidnieks, Magija);

        Console.WriteLine("----------------------------------");
        Console.WriteLine();
    }

    static void SpecialEffect(Speletajs Caster, Speletajs Enemy, Magija Magic)
    {
        // Tālākai izstrādei
    }

    static void Main()
    {
        Speletajs Predator = new Speletajs("Predator", 300, 50, 100, 4, 3);
        Speletajs Renomorph = new Speletajs("Renomorph", 500, 100, 200, 2, 0);

        Magija Firehell = new Magija("Firehell", 40, 3, "Attack");
        Magija GreenSpirit = new Magija("Green spirit", 300, 5, "Attack");
        Magija LowCortisol = new Magija("Low cortisol", 100, 60, "Heal");

        Console.WriteLine("===== SOULS KING =====");
        Console.WriteLine();

        Console.WriteLine("Sākuma HP:");
        Console.WriteLine("Predator HP = " + Predator.HP);
        Console.WriteLine("Renomorph HP = " + Renomorph.HP);
        Console.WriteLine();

        CastMagic(Predator, Renomorph, Firehell);
        CastMagic(Renomorph, Predator, GreenSpirit);
        CastMagic(Predator, Predator, LowCortisol);

        Console.WriteLine("===== GALA REZULTĀTS =====");
        Console.WriteLine("Predator HP = " + Predator.HP);
        Console.WriteLine("Renomorph HP = " + Renomorph.HP);

        Console.ReadLine();
    }
}