package org.project.entity.players;

import org.project.entity.Entity;

public class Knight extends Player {

    public Knight(String name) {
        super(name, 100, 50, 20);
    }

    @Override
    public void specialAbility(Entity target) {
        int cost = 15;
        if (mp >= cost) {
            mp -= cost;
            System.out.println("\u001B[36m⚔️ " + name + " (Knight) used Shield Bash! (-15 Mana)\u001B[0m");
            target.takeDamage(baseDamage * 2);
            target.setStunned(true);
            System.out.println("\u001B[33m" + target.getName() + " is stunned for the next turn!\u001B[0m");
        } else {
            System.out.println("\u001B[34mNot enough mana! Defaulting to Light Attack.\u001B[0m");
            lightAttack(target);
        }
    }
}