Update module/documents/chatMessage.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
WBHarry 2026-05-02 22:28:42 +02:00 committed by GitHub
parent d40ee35f92
commit deefe56551
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')