In the glyph of warding spell you can put spells for later use which is a very usefull mechanic for either harming an enemy or helping an ally.
However can you put in a spell with a range of self? And does it then target the creature that triggers it?
Could a warlock put in an Armor of Agathys, have the barbarian trigger the glyph and get the effect of the spell?
And in the case of designation, if a cleric puts in a destructive wave spell, do they need to designate creatures that are unaffected at the time of castig the glyph or does that just not happen. And how does it work for an evocation wizard with fireball?
If the spell has a target, it targets the creature that triggered the glyph.
The problem is that Glyph of Warding isn't a Warlock spell, and the spell's description makes it quite clear that the person making the glyph and the person casting the stored spell are one and the same, so unless you're multiclassing, Armor of Agathys probably wouldn't work. That being said, a DM might appreciate the creativity and teamwork involved and let you do it anyway. You should probably ask.
In the glyph of warding spell you can put spells for later use which is a very usefull mechanic for either harming an enemy or helping an ally.
However can you put in a spell with a range of self? And does it then target the creature that triggers it?
Could a warlock put in an Armor of Agathys, have the barbarian trigger the glyph and get the effect of the spell?
And in the case of designation, if a cleric puts in a destructive wave spell, do they need to designate creatures that are unaffected at the time of castig the glyph or does that just not happen. And how does it work for an evocation wizard with fireball?
Yes. This case is actually covered in the spell's description.
https://www.dndbeyond.com/spells/2618951-glyph-of-warding
The problem is that Glyph of Warding isn't a Warlock spell, and the spell's description makes it quite clear that the person making the glyph and the person casting the stored spell are one and the same, so unless you're multiclassing, Armor of Agathys probably wouldn't work. That being said, a DM might appreciate the creativity and teamwork involved and let you do it anyway. You should probably ask.
I agree, and IIRC, it was also possible under the 2014 rules.