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

Fix inline source usage for events #187

Conversation

Azurelol
Copy link
Collaborator

Fixes the issue where the actor's methods could not be resolved for drag events.

It came to be due to non-primitives being passed in the .dragstart event, which get serialized then deserialized without type information.

I had to refactor the events and the API involved so that we only pass in the uuids for the item/actor instead then resolve it at the very end.

return context.actor.system.level.value;
// Item level / skill level
case 'il':
case 'sl':
assertItemInContext(context, match);
context.assertActor(match);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assertItem* ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack! Thank you for catching it.

@Azurelol Azurelol requested a review from KSops December 24, 2024 16:19
@spyrella spyrella merged commit 92a930b into League-of-Fabulous-Developers:dev Dec 25, 2024
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

Successfully merging this pull request may close these issues.

3 participants