Browse Source

Fixes #10

tags/v0.1.2^2
bigbadwaffle 7 years ago
parent
commit
53f2702273
3 changed files with 4 additions and 3 deletions
  1. +1
    -1
      src/server/config/spells/spellFireblast.js
  2. +1
    -1
      src/server/config/spellsConfig.js
  3. +2
    -1
      src/server/world/physics.js

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

@@ -83,7 +83,7 @@ define([
dx = ~~(dx / Math.abs(dx));
dy = ~~(dy / Math.abs(dy));
for (var l = 0; l < this.pushback; l++) {
if (physics.isTileBlocking(targetPos.x + dx, targetPos.y + dy)) {
if (physics.isTileBlocking(targetPos.x + dx, targetPos.y + dy, true)) {
if (physics.isTileBlocking(targetPos.x + dx, targetPos.y)) {
if (physics.isTileBlocking(targetPos.x, targetPos.y + dy)) {
break;


+ 1
- 1
src/server/config/spellsConfig.js View File

@@ -39,7 +39,7 @@ define([
random: {
damage: [6.7, 13.3],
i_radius: [1, 2.2],
i_pushback: [1, 4]
i_pushback: [5, 10]
}
},
'smite': {


+ 2
- 1
src/server/world/physics.js View File

@@ -266,11 +266,12 @@ define([
x = ~~x;
y = ~~y;

//Colliders d
var node = this.graph.grid[x][y];
if (node)
return node.isWall();
else
return false;
return true;
},
isCellOpen: function(x, y) {
if ((x < 0) || (y < 0) || (x >= this.width) | (y >= this.height))


Loading…
Cancel
Save