|
@@ -112,8 +112,12 @@ class unitState extends EventEmitter {
|
|
|
this.__mod.command.message(`Mode was changed to "${this.preset.directives.triggerCU}".`);
|
|
this.__mod.command.message(`Mode was changed to "${this.preset.directives.triggerCU}".`);
|
|
|
}
|
|
}
|
|
|
else if (this.__mod.game.me.inDungeon && this.preset.directives.triggerDungeons) {
|
|
else if (this.__mod.game.me.inDungeon && this.preset.directives.triggerDungeons) {
|
|
|
- this.activeMode = this.preset.modes[this.preset.directives.triggerDungeons[event.zone]] ||
|
|
|
|
|
|
|
+ let mode = this.preset.modes[this.preset.directives.triggerDungeons[event.zone]] ||
|
|
|
this.preset.modes[this.preset.directives.triggerDungeons["all"]];
|
|
this.preset.modes[this.preset.directives.triggerDungeons["all"]];
|
|
|
|
|
+ if(mode) {
|
|
|
|
|
+ this.activeMode = mode;
|
|
|
|
|
+ this.__mod.command.message(`Mode was changed to "${mode}".`);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
else if (this.__mod.game.me.inOpenWorld && this.preset.directives.triggerOW) {
|
|
else if (this.__mod.game.me.inOpenWorld && this.preset.directives.triggerOW) {
|
|
|
this.activeMode = this.preset.modes[this.preset.directives.triggerOW];
|
|
this.activeMode = this.preset.modes[this.preset.directives.triggerOW];
|