Active intention for monsters on spawn.

Contributed by sinsegi001.
This commit is contained in:
MobiusDevelopment
2019-10-16 09:38:49 +00:00
parent 2b350687b5
commit 917f6a7b9b
17 changed files with 55 additions and 0 deletions

View File

@@ -3064,12 +3064,19 @@ public class Attackable extends NpcInstance
public void onSpawn()
{
super.onSpawn();
// Clear mob spoil,seed
setSpoil(false);
// Clear all aggro char from list
clearAggroList();
// Set the intention of the Attackable to AI_INTENTION_ACTIVE
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
// Clear Harvester Rewrard List
_harvestItems = null;
// Clear mod Seeded stat
setSeeded(false);