override public void SetTarget(Targetable target)
    {
        if (!target)
        {
            Debug.Log($"Spell {name} has no target. Target probably has been destroyed.");
        }

        base.SetTarget(target);

        HP hp = target.GetComponent <HP>( );

        hp.Heal(effectAmount);
    }
Example #2
0
 public void Heal(float amount)
 {
     hp.Heal(amount);
 }