Skip to content

Commit

Permalink
Merge pull request #2502 from cesardlinx/issue_2302
Browse files Browse the repository at this point in the history
Fix: wrong movement range on avatar hover in the first round, closes #2302
  • Loading branch information
DreadKnight authored Oct 6, 2023
2 parents e67631a + af97c53 commit 11a790e
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

1 comment on commit 11a790e

@vercel
Copy link

@vercel vercel bot commented on 11a790e Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.