package org.project.entity.players;

import org.project.entity.Entity;
import org.project.entity.enemies.Enemy;
import org.project.item.armors.KnightArmor;
import org.project.item.weapons.Sword;

public class Knight extends Player {
    public Knight(String name) {
        super(name, 50, 40, new Sword(), new KnightArmor());
    }

    @Override
    public void specialAbility(Entity target) {
        int manaCost = 15;
        if (mp < manaCost) {
            System.out.println("❌ Not enough Mana/Stamina for Shield Bash!");
            return;
        }
        mp -= manaCost;
        System.out.println("🛡️⚡ " + name + " used Shield Bash! (-" + manaCost + " Mana)");
        target.takeDamage(25);
        if (target instanceof Enemy) {
            ((Enemy) target).setStunned(true);
            System.out.println("💫 Enemy is stunned and will skip their next turn!");
        }
    }
}