Big Bad Waffle пре 7 година
родитељ
комит
30b102ff7f
1 измењених фајлова са 6 додато и 2 уклоњено
  1. +6
    -2
      src/client/js/components/spellbook.js

+ 6
- 2
src/client/js/components/spellbook.js Прегледај датотеку

@@ -72,10 +72,14 @@ define([

if (blueprint.getSpells) {
blueprint.getSpells.forEach(function(s) {
if (this.spells.find(function(spell) {
var existIndex = this.spells.firstIndex(function(spell) {
return (spell.id == s.id);
}))
});

if (existIndex > -1) {
this.spells.splice(existIndex, 1, s);
return;
}
if (this.spells.length - 1 >= s.id)
this.spells.splice(s.id, 0, s);


Loading…
Откажи
Сачувај