mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-21 18:09:54 +02:00
Added a warning notification if comboDice modifiers are used on anything but a pair of dice
This commit is contained in:
parent
f977163534
commit
3b87e1d4a8
2 changed files with 6 additions and 2 deletions
|
|
@ -17,7 +17,10 @@ export default class BaseDie extends foundry.dice.terms.Die {
|
|||
|
||||
async handleComboDice(maxIncreasesDiceSize) {
|
||||
/* ComboDice only works with exactly two dice and both have to be the same denomination */
|
||||
if (this.number !== 2) return false;
|
||||
if (this.number !== 2) {
|
||||
ui.notifications.warn(game.i18n.localize('DAGGERHEART.UI.Notifications.comboDiceOnlyTwoDiceError'));
|
||||
return false;
|
||||
}
|
||||
|
||||
const result = await this.continueCombo(maxIncreasesDiceSize);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue