Fixed regen task would not stop for summons.
Contributed by Sahar.
This commit is contained in:
@@ -379,6 +379,8 @@ public abstract class Summon extends Playable
|
||||
{
|
||||
if (isSpawned() && !isDead())
|
||||
{
|
||||
stopHpMpRegeneration();
|
||||
|
||||
getAI().stopFollow();
|
||||
if (owner != null)
|
||||
{
|
||||
|
@@ -1109,7 +1109,6 @@ public class PetInstance extends Summon
|
||||
public synchronized void unSummon(PlayerInstance owner)
|
||||
{
|
||||
stopFeed();
|
||||
stopHpMpRegeneration();
|
||||
super.unSummon(owner);
|
||||
|
||||
if (!isDead())
|
||||
|
@@ -379,6 +379,8 @@ public abstract class Summon extends Playable
|
||||
{
|
||||
if (isSpawned() && !isDead())
|
||||
{
|
||||
stopHpMpRegeneration();
|
||||
|
||||
getAI().stopFollow();
|
||||
if (owner != null)
|
||||
{
|
||||
|
@@ -1109,7 +1109,6 @@ public class PetInstance extends Summon
|
||||
public synchronized void unSummon(PlayerInstance owner)
|
||||
{
|
||||
stopFeed();
|
||||
stopHpMpRegeneration();
|
||||
super.unSummon(owner);
|
||||
|
||||
if (!isDead())
|
||||
|
Reference in New Issue
Block a user