Example #1
0
    private float Heal(EnemyScript target)
    {
        if (target.cursed)
        {
            return(0);
        }

        float heal = heal_value;

        heal += this.enemy.maxHp * heal_own_ratio;
        heal += target.maxHp * heal_target_ratio;

        target.AddHP(heal);

        return(heal);
    }