Skip to content

Commit

Permalink
fix: fixed your own spikes making you stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
Picoseconds committed Aug 16, 2020
1 parent 3eb5b5a commit 23b04b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/moomoo/Physics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ function tryMovePlayer(player: Player, delta: number, xVel: number, yVel: number

let dmg = gameObj.dmg;

if (dmg) {
if (gameObj.isPlayerGameObject() && !gameObj.isEnemy(player, state.tribes)) return;

if (dmg && !(gameObj.isPlayerGameObject() && !gameObj.isEnemy(player, state.tribes))) {
let hat = getHat(player.hatID);

if (hat) {
Expand Down

0 comments on commit 23b04b5

Please # to comment.