import GRoleBase from "../role/GRoleBase";
import GRoleDefault from "../role/GRoleDefault";
import { GRoleAttackType } from "../values/GRoleValues";

//宠物攻击 工具类
export default class GRoleAttack{

    //普通攻击
    static onNormalAttack(attack:GRoleBase<{}>,hit:GRoleBase<{}>){
        if(attack.get() && hit.get())
            hit.onHit(GRoleAttackType.NormalAttack,attack.values.onAttack(GRoleAttackType.NormalAttack),attack);
    }

}