package org.project.item.weapons;

import org.project.entity.Entity;
import java.util.ArrayList;

public class Sword extends Weapon {
    private int abilityCharge;

    public Sword() {
        super(15, 0, "Sword", 30);
        this.abilityCharge = 0;
    }

    public void uniqueAbility(ArrayList<Entity> targets) {
        abilityCharge += 2;
        for (Entity target : targets) {
            target.takeDamage(getDamage());
        }
    }

    public int getAbilityCharge() {
        return abilityCharge;
    }
}