feat(#8): improve debug

This commit is contained in:
Juan Sebastián Montoya 2024-09-14 18:38:50 -05:00
parent 4e2905cf96
commit 731a32303a
8 changed files with 84 additions and 88 deletions

View file

@ -19,6 +19,7 @@ export class MapManagement extends GameObject {
}
onMouseClick(elementId) {
super.onMouseClick(elementId);
if (
!this.elementsId.includes(elementId) ||
this.selected.elementId === elementId