lanedirt / OGameX

Open-source OGame redesign clone built with Laravel 11.x.
https://main.ogamex.dev
MIT License
10 stars 8 forks source link

[BUG] Small and large shields can be built more than once #212

Open lanedirt opened 1 month ago

lanedirt commented 1 month ago

Describe the bug The small and large shield defense objects can be built more than once. They should actually only be able to be built once.

To Reproduce Steps to reproduce the behavior:

  1. Go to defense page.
  2. Try to build a small and/or large shield.
  3. After building, try to build another unit.
  4. You are able to build more than one.

Expected behavior Only being able to build maximum of 1. When one is already built, the "build" button is greyed out and disabled.

Screenshots This is what it looks like now:

Screenshot 2024-05-27 at 22 46 16

This is what it looks like in the official game:

Screenshot 2024-05-27 at 22 51 27