Eranziel / foundryvtt-lancer

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

[BUG] Using an NPC tech attack un-sets the tech attack flag on the item #697

Closed Eranziel closed 5 months ago

Eranziel commented 5 months ago

Describe the bug After making a tech attack with an NPC feature, it is converted to a non-attack tech action.

It does not seem to matter if the actor sheet or item sheet is open. tech_attack always gets set false. Also, notably, dragging the attack button to hotbar to create an attack macro will always bring up the attack HUD, even if tech_attack is false. This behaviour could also be considered a bug.

To Reproduce Steps to reproduce the behavior:

  1. Import the Witch NPC
  2. Open sheet, click the d20 button on Tear Down to make a tech attack
  3. Confirm on the Attack HUD
  4. Item is updated to set tech_attack false, hiding the attack button and stats and showing the "Use" button.

Expected behavior Making attacks should not cause these kinds of updates to an item.