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); }
public void Heal(float amount) { hp.Heal(amount); }