Skip to content

Commit

Permalink
Enhancement: Shadow Of The Demon Lord
Browse files Browse the repository at this point in the history
  • Loading branch information
sasquach45932 committed Nov 8, 2023
1 parent 2bebe06 commit f7b184d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/roller.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,23 +395,22 @@ class LMRTFYRoller extends Application {
const rollMode = game.settings.get("core", "rollMode");
game.settings.set("core", "rollMode", this.mode || CONST.DICE_ROLL_MODES);

if (game.combat?.combatants !== undefined)
{
if (game.combat?.combatants !== undefined) {
let combatantFound
for (let actor of this.actors) {
combatantFound = null
for (const combatant of game.combat.combatants) {
if (combatant.actor?._id === actor._id) {
combatantFound = combatant
}
}
}
if (combatantFound) {
game.combat.rollInitiative(combatantFound._id)
}
} else {
ui.notifications.warn(game.i18n.localize("LMRTFY.DemonLordNoCombat"));
}
}
}
else
{
} else {
ui.notifications.warn(game.i18n.localize("LMRTFY.DemonLordNoCombat"));
}

Expand Down

0 comments on commit f7b184d

Please sign in to comment.