Example #1
0
    protected override void OnEndOfRange()
    {
        base.OnEndOfRange();

        if (knockback)
        {
            area.DealDamageWithKnockback(secondaryDamage, kbForce);
        }
        else
        {
            area.DealDamage(secondaryDamage);
        }

        ability.ShowAoeIndicator(transform.position, aoeIndicator);
    }
Example #2
0
    protected override void DoTick()
    {
        base.DoTick();

        if (!knockback)
        {
            area.DealDamage(damage);
        }
        else
        {
            area.DealDamageWithKnockback(damage, knockbackForce);
        }
    }