mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Set adversary buttosn to type=button. Fixed faulty _onUpdate
This commit is contained in:
parent
2f39e04da5
commit
fa0f33872a
3 changed files with 3 additions and 3 deletions
|
|
@ -144,7 +144,7 @@ export default class DhpAdversary extends BaseDataActor {
|
||||||
super._onUpdate(changes, options, userId);
|
super._onUpdate(changes, options, userId);
|
||||||
|
|
||||||
if (game.user.id === userId) {
|
if (game.user.id === userId) {
|
||||||
if (changes.system.type) {
|
if (changes.system?.type) {
|
||||||
const existingHordeEffect = this.parent.effects.find(x => x.type === 'horde');
|
const existingHordeEffect = this.parent.effects.find(x => x.type === 'horde');
|
||||||
if (changes.system.type === CONFIG.DH.ACTOR.adversaryTypes.horde.id) {
|
if (changes.system.type === CONFIG.DH.ACTOR.adversaryTypes.horde.id) {
|
||||||
if (!existingHordeEffect)
|
if (!existingHordeEffect)
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
<div class="adversary-navigation">
|
<div class="adversary-navigation">
|
||||||
{{> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
|
{{> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
|
||||||
<button data-action="openSettings" data-tooltip-text="{{localize "DAGGERHEART.UI.Tooltip.openSheetSettings"}}">
|
<button type="button" data-action="openSettings" data-tooltip-text="{{localize "DAGGERHEART.UI.Tooltip.openSheetSettings"}}">
|
||||||
<i class="fa-solid fa-wrench"></i>
|
<i class="fa-solid fa-wrench"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,6 @@
|
||||||
</div>
|
</div>
|
||||||
<line-div></line-div>
|
<line-div></line-div>
|
||||||
<div class="reaction-section">
|
<div class="reaction-section">
|
||||||
<button data-action="reactionRoll">{{localize "DAGGERHEART.GENERAL.Roll.reaction"}}</button>
|
<button type="button" data-action="reactionRoll">{{localize "DAGGERHEART.GENERAL.Roll.reaction"}}</button>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue