
In this occasion, activeChar is the monster right?
So,
Code: Select all
if (object instanceof L2PcInstance //it checks if the object that is coming is a player && getActiveChar().hasAI() //removed && getActiveChar().getAI().getIntention() == CtrlIntention.AI_INTENTION_IDLE) // <-- here, some monsters have no intention at all. I mean there are some monsters that are not even IDLE. How all the monsters pass this check and become active? getActiveChar().getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE, null); //sets the monster active