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)
|
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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue