Browse Source

bug #1914

(cherry picked from commit e0f1e8aa3d)
tags/v0.11.0
Shaun 2 years ago
committed by Big Bad Waffle
parent
commit
7a37c28d67
2 changed files with 10 additions and 1 deletions
  1. +8
    -0
      src/server/components/mob.js
  2. +2
    -1
      src/server/security/connections.js

+ 8
- 0
src/server/components/mob.js View File

@@ -126,6 +126,14 @@ module.exports = {
let distanceFromHome = Math.max(abs(this.originX - obj.x), abs(this.originY - obj.y));
if (!distanceFromHome) {
this.goHome = false;

if (!obj.spellbook) {
/* eslint-disable-next-line no-console */
console.log('MOB HAS NO SPELLBOOK BUT WANTS TO RESET ROTATION');
/* eslint-disable-next-line no-console */
console.log(obj.name, obj.zone, obj.zoneName, obj.x, obj.y, obj.components.map(c => c.type).join(','));
}

obj.spellbook.resetRotation();
}
}


+ 2
- 1
src/server/security/connections.js View File

@@ -164,7 +164,8 @@ module.exports = {
.forEach(p => {
atlas.performAction(p, {
cpn: 'auth',
method: 'doSave'
method: 'doSave',
data: {}
});
});
},


Loading…
Cancel
Save