Fixed regen task would not stop for summons.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment
2019-12-27 10:26:24 +00:00
parent c087a94d5e
commit c3356e408c
4 changed files with 4 additions and 2 deletions

View File

@@ -379,6 +379,8 @@ public abstract class Summon extends Playable
{
if (isSpawned() && !isDead())
{
stopHpMpRegeneration();
getAI().stopFollow();
if (owner != null)
{

View File

@@ -1109,7 +1109,6 @@ public class PetInstance extends Summon
public synchronized void unSummon(PlayerInstance owner)
{
stopFeed();
stopHpMpRegeneration();
super.unSummon(owner);
if (!isDead())

View File

@@ -379,6 +379,8 @@ public abstract class Summon extends Playable
{
if (isSpawned() && !isDead())
{
stopHpMpRegeneration();
getAI().stopFollow();
if (owner != null)
{

View File

@@ -1109,7 +1109,6 @@ public class PetInstance extends Summon
public synchronized void unSummon(PlayerInstance owner)
{
stopFeed();
stopHpMpRegeneration();
super.unSummon(owner);
if (!isDead())