Skip to content

Commit

Permalink
Fix wrong movement range on avatar hover in the first round
Browse files Browse the repository at this point in the history
Closes #2302
  • Loading branch information
cesardlinx committed Oct 6, 2023
1 parent e67631a commit af97c53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -2267,9 +2267,10 @@ export class UI {
}
});

const onCreatureMouseEnter = ifGameNotFrozen((creature) => {
const onCreatureMouseEnter = ifGameNotFrozen((placeholderCreature) => {
const creatures = ui.game.creatures.filter((c) => c instanceof Creature);
const otherCreatures = creatures.filter((c) => c.id !== creature.id);
const creature = creatures.filter(c => c.id === placeholderCreature.id)[0];
const otherCreatures = creatures.filter((c) => c.id !== placeholderCreature.id);

otherCreatures.forEach((c) => {
c.xray(true);
Expand Down

0 comments on commit af97c53

Please sign in to comment.