Browse Source

bug[#1609]: Fixed an issue that caused spells to not complete properly which made charaters stuck until pressing escape

tags/v0.8.2
Shaun 3 years ago
parent
commit
639b6f0736
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/server/config/spells/spellTemplate.js

+ 2
- 1
src/server/config/spells/spellTemplate.js View File

@@ -81,10 +81,11 @@ module.exports = {
this.obj.syncer.set(false, null, 'casting', (action.castTimeMax - this.castTime) / action.castTimeMax);

if (!this.castTime) {
this.currentAction = null;

if (this.cast(action)) {
this.consumeMana();
this.setCd();
this.currentAction = null;

this.obj.fireEvent('afterCastSpell', {
castSuccess: true,


Loading…
Cancel
Save