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