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

[Bugfix] Any Includes Weapon #235

Merged
merged 1 commit into from
Sep 4, 2022

Conversation

kyleady
Copy link
Contributor

@kyleady kyleady commented Sep 4, 2022

##Issue
When weaponType in Item4e is set to "any" for a power, a character is allowed to use an Implement for the power. However, when the character attempts to use the power without any weapon or implement equipped, an error is thrown. This is despite an actual Implement not being required for Implement powers.

Fix

This PR adds "any" to the list of weaponTypes that do not require a weapon. It also changes the boolean logic to an Array.inclueds() instead of three separate !== checks.

@EndlesNights EndlesNights merged commit fd721b6 into EndlesNights:main Sep 4, 2022
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.

2 participants