소스 검색

Merge branch '80-spell-tooltip-update-equip' into 'staging'

Fixes #80

See merge request !40
tags/v0.1.2^2
Big Bad Waffle 7 년 전
부모
커밋
54398f407f
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);


불러오는 중...
취소
저장