Maselkov / masels-foundryvtt-macros

Collection of macros for D&D 5e in FoundryVTT
MIT License
8 stars 1 forks source link

Lay on Hands: No Permission to remove effects #1

Closed adotor closed 1 year ago

adotor commented 2 years ago

When using the lay on hands macro to remove conditions like poisoned and diseased, it is necessary to be a GM to use the function MidiQOL.socket().functions.get("removeEffects"). Player receive an error message.

Maselkov commented 2 years ago

This seems to be the case. i thought those functions were there for that, and I am also pretty sure that it worked once upon a time, ha. Seems like callback macros are the only solution, unless there are other functions that I'm missing?

adotor commented 2 years ago

Advanced Macros has a Run as GM setting, but there a restrictions about ownership and it seems impossible to toggle this option on an ItemMacro.

Maselkov commented 1 year ago

I found out about

MidiQOL.socket().executeAsGM()

now. I went ahead and updated the macro, though I haven't tested it yet. It should work with non-gm clients now.