Skip to content
Snippets Groups Projects
Commit 5f744f51 authored by Maneco2's avatar Maneco2
Browse files
parent 3002f8e8
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,7 @@ public final class QueenAnt extends AbstractNpcAI {
case "CORE_MOVEMENT": {
if (npc != null) {
final L2Object obj = npc.getTarget();
if ((obj != null) && (obj.isPlayer()) && (_zone.isInsideZone(obj))) {
if ((obj != null) && (_queen != null) && (obj.isPlayer()) && (_zone.isInsideZone(obj))) {
_queen.setIsImmobilized(false);
}
npc.getVariables().set(ATTACK_FLAG, false);
......@@ -290,7 +290,7 @@ public final class QueenAnt extends AbstractNpcAI {
}
}
}
if ((!npc.getVariables().getBoolean(ATTACK_FLAG, false)) && !npc.isCoreAIDisabled()) {
if ((!npc.getVariables().getBoolean(ATTACK_FLAG, false)) && (npc != null) && (_queen != null) && !npc.isCoreAIDisabled()) {
if (npc.calculateDistance(attacker, false, false) > 150) {
_queen.setIsImmobilized(true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment