Fixed CPU consumption issue after revision 6064.
This commit is contained in:
@@ -2148,10 +2148,9 @@
|
||||
<affectObject>NOT_FRIEND</affectObject>
|
||||
<isDebuff>true</isDebuff>
|
||||
<effects>
|
||||
<effect name="TargetMe" />
|
||||
<effect name="GetAgro" />
|
||||
<effect name="AddHate">
|
||||
<power>1000000</power>
|
||||
<power>500</power>
|
||||
</effect>
|
||||
<effect name="HateAttack">
|
||||
<amount>500</amount>
|
||||
|
@@ -1386,9 +1386,6 @@ public class Attackable extends Npc
|
||||
// Clear all aggro list and overhit
|
||||
clearAggroList();
|
||||
|
||||
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
|
||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||
|
||||
// Clear Harvester reward
|
||||
_harvestItem.set(null);
|
||||
_sweepItems.set(null);
|
||||
@@ -1412,14 +1409,11 @@ public class Attackable extends Npc
|
||||
_seed = null;
|
||||
_seederObjId = 0;
|
||||
|
||||
// check the region where this mob is, do not activate the AI if region is inactive.
|
||||
// if (!isInActiveRegion())
|
||||
// {
|
||||
// if (hasAI())
|
||||
// {
|
||||
// getAI().stopAITask();
|
||||
// }
|
||||
// }
|
||||
// Check the region where this mob is, do not activate the AI if region is inactive.
|
||||
if (hasAI() && !isInActiveRegion())
|
||||
{
|
||||
getAI().stopAITask();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user