We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4603ff3 commit 93b6e55Copy full SHA for 93b6e55
1 file changed
src/engine/entity/Npc.ts
@@ -894,7 +894,7 @@ export default class Npc extends PathingEntity {
894
const hunt: HuntType = HuntType.get(this.huntMode);
895
896
// We need a huntTarget and a huntMode
897
- if (!this.huntTarget || hunt.type === HuntModeType.OFF) {
+ if (!this.huntTarget || typeof hunt === 'undefined' || hunt.type === HuntModeType.OFF) {
898
return;
899
}
900
0 commit comments