Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/juanferrer/demonlord
Browse files Browse the repository at this point in the history
  • Loading branch information
juanferrer committed Aug 28, 2024
2 parents 5849f8e + 5370bd8 commit 6f866e1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/module/combat/combat.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ export async function _onUpdateWorldTime(worldTime, _delta, _options, _userId) {
else
disabled = calcEffectRemainingSeconds(e, worldTime) <= 0

// Delete effects that come from spells, characters or afflictions
if (autoDelete && disabled && ['spell', 'character', 'affliction'].includes(eType))
// Delete effects that come from spells, talents, characters or afflictions
if (autoDelete && disabled && ['spell', 'talent', 'character', 'affliction'].includes(eType))
deleteIds.push(e._id)
else if (disabled !== e.disabled)
updateData.push({_id: e._id, disabled: disabled})
Expand Down
2 changes: 1 addition & 1 deletion src/module/utils/handlebars-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function _buildRadioBoxes(groupName, checkedKey) {
// ----------------------------------------------------

function _IsNestedItem(item) {
return item?.getFlag('demonlord', 'parentItemId')
return item?.getFlag('demonlord', 'parentItemId') && item?.getFlag('demonlord', 'nestedItemId')
}

function _GetNestedItemSource(item) {
Expand Down
12 changes: 7 additions & 5 deletions src/templates/chat/partial/chat-effects.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
- itemEffects
--}}
{{#each data.itemEffects as |effect|}}
<div class="combatactions apply-effect" data-effect-uuid="{{effect.uuid}}">
<div class="header">
<img src="{{effect.img}}" width="15" height="15" />
<div>{{effect.name}}</div>
{{#unless effect.transfer}}
<div class="combatactions apply-effect" data-effect-uuid="{{effect.uuid}}">
<div class="header">
<img src="{{effect.img}}" width="15" height="15" />
<div>{{effect.name}}</div>
</div>
</div>
</div>
{{/unless}}
{{/each}}

0 comments on commit 6f866e1

Please sign in to comment.