Enhance spell damage and messages content
Release Creation / build (release) Successful in 44s

This commit is contained in:
2026-05-19 10:52:03 +02:00
parent 96306623e5
commit 6cf0880ad3
29 changed files with 145 additions and 97 deletions
+3 -2
View File
@@ -324,7 +324,7 @@ export default class LethalFantasyUtils {
<p>Attack roll: <strong>${attackRoll}</strong></p>
</div>
<div class="weapon-selection">
<label for="defense-attack">Choose your defense attack:</label>
<label for="defense-attack">Choose your defense weapon:</label>
<select id="defense-attack" name="attackKey" style="width: 100%; margin-top: 8px;">
${attacksHTML}
</select>
@@ -711,6 +711,7 @@ export default class LethalFantasyUtils {
${totalBonus > 0 ? `<p class="bonus-info">Bonus already added: +${totalBonus}</p>` : ''}
</div>
<p class="offer-text">You are losing! Spend Grit or Luck to add 1D6 to your defense?</p>
<p class="shield-warning"><i class="fa-solid fa-triangle-exclamation"></i> If you intend to use a shield, you must spend Grit or Luck <strong>first</strong> — the shield roll comes after.</p>
</div>
`
@@ -861,7 +862,7 @@ export default class LethalFantasyUtils {
`
} else if (data.attackRollType === "spell-attack" || data.attackRollType === "miracle-attack") {
const attacker = game.actors.get(data.attackerId)
const spell = attacker?.items.get(data.attackWeaponId)
const spell = attacker?.items.get(data.attackWeaponId || data.attackRollKey)
const tiers = [
{ formula: spell?.system?.damageDice, label: "Standard" },
{ formula: spell?.system?.damageDiceOverpowered, label: "Overpowered" },