Skip to content

Commit

Permalink
- Reldens - v4.0.0 - Remove duplicated assignment that was already in…
Browse files Browse the repository at this point in the history
… the getRandomTile method.
  • Loading branch information
damian-pastorini committed Jan 22, 2025
1 parent 0970101 commit e822220
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/objects/server/object/type/enemy-object.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ class EnemyObject extends NpcObject
let respawnArea = this.objectBody.world.respawnAreas[this.respawnLayer];
delete respawnArea.usedTiles[this.randomTileIndex];
let {randomTileIndex, tileData} = respawnArea.getRandomTile(this.objectIndex);
respawnArea.usedTiles[randomTileIndex] = this.objectIndex;
this.randomTileIndex = randomTileIndex;
Object.assign(this, tileData);
let { x, y } = tileData;
Expand Down

0 comments on commit e822220

Please sign in to comment.