Fix: Replace deprecated duration.type with duration.units (Foundry v14+)
- ActiveEffectDuration#type was renamed to #units in Foundry VTT v14 - Updated partial-active-effects.hbs to use duration.units - Updated partial-item-effects.hbs to use duration.units - Added test verification for duration.type usage - Support for duration.type will be removed in v16 Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -48,12 +48,12 @@
|
||||
</div>
|
||||
|
||||
{{!-- Affichage de la durée --}}
|
||||
{{#if effect.duration.type}}
|
||||
{{#if effect.duration.units}}
|
||||
<span class="item-field-label-short" style="font-size: 0.85em;">
|
||||
{{#if (eq effect.duration.type "rounds")}}🔄{{/if}}
|
||||
{{#if (eq effect.duration.type "turns")}}🎭{{/if}}
|
||||
{{#if (eq effect.duration.type "seconds")}}⏱️{{/if}}
|
||||
{{#if (eq effect.duration.type "combat")}}⚔️{{/if}}
|
||||
{{#if (eq effect.duration.units "rounds")}}🔄{{/if}}
|
||||
{{#if (eq effect.duration.units "turns")}}🎭{{/if}}
|
||||
{{#if (eq effect.duration.units "seconds")}}⏱️{{/if}}
|
||||
{{#if (eq effect.duration.units "combat")}}⚔️{{/if}}
|
||||
{{effect.duration.value}}
|
||||
</span>
|
||||
{{/if}}
|
||||
|
||||
Reference in New Issue
Block a user