Stop AI task on decay.

This commit is contained in:
MobiusDevelopment
2019-06-06 09:57:45 +00:00
parent 8b34c14e88
commit 04e300a4fa
12 changed files with 120 additions and 0 deletions

View File

@@ -1677,6 +1677,16 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
return true; return true;
} }
@Override
public boolean decayMe()
{
if (hasAI())
{
getAI().stopAITask();
}
return super.decayMe();
}
@Override @Override
public boolean deleteMe() public boolean deleteMe()
{ {

View File

@@ -1677,6 +1677,16 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
return true; return true;
} }
@Override
public boolean decayMe()
{
if (hasAI())
{
getAI().stopAITask();
}
return super.decayMe();
}
@Override @Override
public boolean deleteMe() public boolean deleteMe()
{ {

View File

@@ -1677,6 +1677,16 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
return true; return true;
} }
@Override
public boolean decayMe()
{
if (hasAI())
{
getAI().stopAITask();
}
return super.decayMe();
}
@Override @Override
public boolean deleteMe() public boolean deleteMe()
{ {

View File

@@ -1677,6 +1677,16 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
return true; return true;
} }
@Override
public boolean decayMe()
{
if (hasAI())
{
getAI().stopAITask();
}
return super.decayMe();
}
@Override @Override
public boolean deleteMe() public boolean deleteMe()
{ {

View File

@@ -1677,6 +1677,16 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
return true; return true;
} }
@Override
public boolean decayMe()
{
if (hasAI())
{
getAI().stopAITask();
}
return super.decayMe();
}
@Override @Override
public boolean deleteMe() public boolean deleteMe()
{ {

View File

@@ -1677,6 +1677,16 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
return true; return true;
} }
@Override
public boolean decayMe()
{
if (hasAI())
{
getAI().stopAITask();
}
return super.decayMe();
}
@Override @Override
public boolean deleteMe() public boolean deleteMe()
{ {

View File

@@ -1677,6 +1677,16 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
return true; return true;
} }
@Override
public boolean decayMe()
{
if (hasAI())
{
getAI().stopAITask();
}
return super.decayMe();
}
@Override @Override
public boolean deleteMe() public boolean deleteMe()
{ {

View File

@@ -1677,6 +1677,16 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
return true; return true;
} }
@Override
public boolean decayMe()
{
if (hasAI())
{
getAI().stopAITask();
}
return super.decayMe();
}
@Override @Override
public boolean deleteMe() public boolean deleteMe()
{ {

View File

@@ -1677,6 +1677,16 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
return true; return true;
} }
@Override
public boolean decayMe()
{
if (hasAI())
{
getAI().stopAITask();
}
return super.decayMe();
}
@Override @Override
public boolean deleteMe() public boolean deleteMe()
{ {

View File

@@ -1677,6 +1677,16 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
return true; return true;
} }
@Override
public boolean decayMe()
{
if (hasAI())
{
getAI().stopAITask();
}
return super.decayMe();
}
@Override @Override
public boolean deleteMe() public boolean deleteMe()
{ {

View File

@@ -1677,6 +1677,16 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
return true; return true;
} }
@Override
public boolean decayMe()
{
if (hasAI())
{
getAI().stopAITask();
}
return super.decayMe();
}
@Override @Override
public boolean deleteMe() public boolean deleteMe()
{ {

View File

@@ -1677,6 +1677,16 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
return true; return true;
} }
@Override
public boolean decayMe()
{
if (hasAI())
{
getAI().stopAITask();
}
return super.decayMe();
}
@Override @Override
public boolean deleteMe() public boolean deleteMe()
{ {