fix: Fixes timer leak in creature healing (#2349)
This commit is contained in:
parent
e1e1a7c640
commit
0ac16ddcb3
1 changed files with 7 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue