Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attached Properties aren't accessible in Report trait after a Delete #13269

Open
riverwanderer opened this issue Apr 12, 2024 · 0 comments
Open

Comments

@riverwanderer
Copy link
Collaborator

riverwanderer commented Apr 12, 2024

Standard properties continue to be available to the Report Action trait after a piece has been Deleted.

This is not the case for Properties accessed via an Attachment.

Here is an example Report Action that references properties as follows:
MustRetreatHex is a Dynamic Property on the piece, unit is an Attachment name and Strength is a Dynamic Property on the attached piece:

Report output after a Delete:
* Attacker: MustRetreatHex=1 unit_Strength=

Report output if the Delete is blocked:
* Attacker: MustRetreatHex=1 unit_Strength=3

Workaround; don't rely on the standard post-delete behaviour of the Report Action trait. Instead, use a Trigger to ensure that the Delete occurs after the Report Action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant