WarFrontIO / client

Real-time strategy game played in the browser
https://dev.warfront.io
MIT License
20 stars 6 forks source link

Fix bug: boat attack expanding from all borders #15

Closed Riprefro54 closed 1 month ago

Riprefro54 commented 1 month ago

Bug fix: Previously, when a boat landed on a target (either a bot or free land), the player would expand from every border as if it were a normal attack. Now, when a boat lands, it expands only from the landing point. This fix involved adding "borderTiles" to the AttackExecutor. "borderTiles" is a set that determines the origin of the attack. If it is set to null, the player’s border tiles are used as before. This change was implemented to make an infrastructure for adding/modding attack types in the future.

platz1de commented 1 month ago

Thank you!