package org.project.item.weapons;

import org.project.entity.Entity;

import java.util.ArrayList;

// TODO: UPDATE IMPLEMENTATION
public class SwordProMax extends Weapon {
    /*
    THIS IS AN EXAMPLE OF A WEAPON DESIGN.
    */
    private static final int damage = 5 ;
    private static final int manacost = 2;


    int abilityCharge;

    public SwordProMax(int Damage , int Manacost) {
        super(damage , manacost);

        // TODO: DESIGN SWORD'S ATTRIBUTES IMPLEMENT THE CONSTRUCTOR
    }

    public SwordProMax(Weapon other) {
        super (other.getDamage() , other.getManaCost());
    }

    // TODO: (BONUS) UPDATE THE UNIQUE ABILITY
    public void uniqueAbility(ArrayList<Entity> targets) {
        abilityCharge += 2;
        for (Entity target : targets) {
            target.takeDamage(getDamage());
        }
    }
}
