Browse Source

bug[#1612]: Fixed a bug where resummoning a skeleton destroyed the old one but didn't summon a new one

tags/v0.8.2
Shaun 3 years ago
parent
commit
e7ce0abb1c
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/server/mods/class-necromancer/spells/spellSummonSkeleton.js

+ 4
- 3
src/server/mods/class-necromancer/spells/spellSummonSkeleton.js View File

@@ -45,7 +45,8 @@ module.exports = {
if (killMinionsBeforeSummon)
this.killMinions();

if (minions.length >= maxSummon)
const livingMinions = minions.filter(m => !m.destroyed);
if (livingMinions.length >= maxSummon)
return false;

const currentTarget = obj.aggro.getHighest();
@@ -163,9 +164,9 @@ module.exports = {

killMinions: function (minion) {
this.minions.forEach(m => {
if ((m) && (!m.destroyed)) {
if (m && !m.destroyed) {
m.destroyed = true;
this.minions = [];
this.minions.length = 0;

let animations = require('../../../config/animations');



Loading…
Cancel
Save