mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-05 20:34:15 +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 });
|
||||
};
|
||||
|
||||
const needsGMExecution = effects.length > 0;
|
||||
|
||||
if (needsGMExecution && !game.user.isGM) {
|
||||
// Regions with effects must be placed by the GM
|
||||
if (effects.length > 0 && !game.user.isGM) {
|
||||
if (!game.users.activeGM)
|
||||
return ui.notifications.error(
|
||||
game.i18n.localize('DAGGERHEART.UI.Notifications.behaviorRegionRequiresGM')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue