Browse Source

bug[#1613]: Fixed a bug that causes whirlwind to have no sprites in some situations

tags/v0.8.2
Shaun 3 years ago
parent
commit
b1b9baab58
2 changed files with 5 additions and 3 deletions
  1. +1
    -1
      src/client/js/components/whirlwind.js
  2. +4
    -2
      src/server/config/spells/spellWhirlwind.js

+ 1
- 1
src/client/js/components/whirlwind.js View File

@@ -12,7 +12,7 @@ define([
col: null,
frames: 4,
frameDelay: 4,
spriteSheet: null,
spriteSheet: 'attacks',

delay: 32,
coordinates: [],


+ 4
- 2
src/server/config/spells/spellWhirlwind.js View File

@@ -47,6 +47,7 @@ module.exports = {
row: 5,
col: 0,
frames: 3,
spriteSheet: 'attacks',

damage: 1,
isAttack: true,
@@ -55,7 +56,7 @@ module.exports = {
targetPlayerPos: true,

cast: function (action) {
const { frames, row, col, delay, obj } = this;
const { frames, row, col, delay, obj, spriteSheet } = this;
const { id, instance, x: playerX, y: playerY } = obj;

const coordinates = coordinateDeltas[this.range - 1].map(([x, y]) => [x + playerX, y + playerY]);
@@ -69,7 +70,8 @@ module.exports = {
frames,
row,
col,
delay
delay,
spriteSheet
}]
};



Loading…
Cancel
Save