package org.project.entity.players;

import org.project.entity.Entity;

public class Wizard extends Player {

    public Wizard(String name) {
        super(name, 150, 80, 12);
    }

    @Override
    public void specialAbility(Entity target) {
        int cost = 15;
        if (mp >= cost) {
            mp -= cost;
            System.out.println("\u001B[36m🧙‍♂️ " + name + " (Wizard) cast Life Drain! (-15 Mana)\u001B[0m");
            target.takeDamage(baseDamage * 2);
            heal(maxHP / 4);
            System.out.println("\u001B[32m" + name + " healed for " + (maxHP / 4) + " HP!\u001B[0m");
        } else {
            System.out.println("\u001B[34mNot enough mana! Defaulting to Light Attack.\u001B[0m");
            lightAttack(target);
        }
    }
}