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

Add spellLevel to measured template flags #2239

Merged
merged 1 commit into from
Sep 7, 2023
Merged

Conversation

Ikaguia
Copy link
Contributor

@Ikaguia Ikaguia commented Mar 11, 2023

Closes #2215

@@ -48,6 +48,7 @@ export default class AbilityTemplate extends MeasuredTemplate {
fillColor: game.user.color,
flags: { dnd5e: { origin: item.uuid } }
};
if ( item.type === "spell" ) foundry.utils.mergeObject(templateData.flags, {"dnd5e.spellLevel": item.system.level});
Copy link
Contributor

Choose a reason for hiding this comment

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

mergeObject might be a bit overkill here, since flags.dnd5e always exists. 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just followed the same pattern already established here:

if ( isSpell ) foundry.utils.mergeObject(options.flags, {"dnd5e.use.spellLevel": item.system.level});

@Fyorl Fyorl added this to the D&D5E 2.4.0 milestone Sep 7, 2023
@Fyorl Fyorl changed the base branch from 2.2.x to 2.4.x September 7, 2023 13:24
@Fyorl Fyorl merged commit aeedcb0 into foundryvtt:2.4.x Sep 7, 2023
@Ikaguia Ikaguia deleted the patch-4 branch December 18, 2023 01:13
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.

None yet

3 participants