fix: Fixes timer leak in creature healing (#2349)

This commit is contained in:
Bohica 2026-03-05 19:37:48 -08:00 committed by GitHub
parent e1e1a7c640
commit 0ac16ddcb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5300,6 +5300,8 @@ namespace Server.Mobiles
public virtual void HealStart(Mobile patient)
{
StopHeal();
var onSelf = patient == this;
// DoBeneficial( patient );
@ -5326,12 +5328,13 @@ namespace Server.Mobiles
return;
}
var onSelf = patient == this;
if (!patient.Alive)
if (!InRange(patient, HealStartRange))
{
return;
}
else if (patient.Poisoned)
var onSelf = patient == this;
if (patient.Poisoned)
{
var poisonLevel = patient.Poison.Level;