Eranziel / foundryvtt-lancer

A Foundry VTT game system for LANCER RPG.
GNU General Public License v3.0
105 stars 63 forks source link

[BUG] GMs cannot cause the automatic structure popup for players. #707

Closed Fayeble closed 3 months ago

Fayeble commented 3 months ago

Describe the bug If a GM and a Player are connected and a GM reduces a Player's mech to 0 HP, automation does not cause the structure popup for either the GM or the player. It does work however if the Player is not connected, if the Player reduces their own mech to 0 HP, or if it is anything other than a Player's tokens. It throws no errors in the console.

To Reproduce Steps to reproduce the behavior:

  1. Create a new LANCER world.
  2. Create a dummy player and log onto that in the browser of your choice.
  3. Import and attach any character and their mech to the dummy player, making them owner.
  4. Place the mech and set its HP to 0 on the GM's screen. There will be no popup on the player's screen.

Expected behavior When a GM reduces the HP of a Player's mech to 0, the structure popup should appear for a player automatically if automation is enabled.

Screenshots https://github.com/Eranziel/foundryvtt-lancer/assets/35507599/cf2ebca1-5ce1-44bf-9595-be519db5957f

Platform (please complete the following information):

Additional context It also includes Stress checks in the same manner, partially shown in the video.

Discord contact info fayeble/Fayeble

BoltsJ commented 3 months ago

In the meantime, players can click the structure button in the stats tab to manually trigger a structure check