mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-07 21:34:16 +02:00
Update module/documents/chatMessage.mjs
Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
parent
d40ee35f92
commit
deefe56551
1 changed files with 2 additions and 3 deletions
|
|
@ -288,9 +288,8 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
||||||
canvas.regions.placeRegion(data, { create: true });
|
canvas.regions.placeRegion(data, { create: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
const needsGMExecution = effects.length > 0;
|
// Regions with effects must be placed by the GM
|
||||||
|
if (effects.length > 0 && !game.user.isGM) {
|
||||||
if (needsGMExecution && !game.user.isGM) {
|
|
||||||
if (!game.users.activeGM)
|
if (!game.users.activeGM)
|
||||||
return ui.notifications.error(
|
return ui.notifications.error(
|
||||||
game.i18n.localize('DAGGERHEART.UI.Notifications.behaviorRegionRequiresGM')
|
game.i18n.localize('DAGGERHEART.UI.Notifications.behaviorRegionRequiresGM')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue