Through a peculiar course of events with a touch of homebrew, my cleric got to learn the spell Armor of Agathys (Player's Handbook p. 215) which has the effect:
If a creature hits you with a melee attack ... the creature takes 5 cold damage.
As a regular user of the Sanctuary spell, I wondered how these spells would interact in the following situation:
- Casting Sanctuary on myself as soon as fight starts
- Casting Armor of Agathys to add an additional defense
- A goblin succeeds the Sanctuary saving throw and hits me with a melee attack
- The goblin takes damage due to Armor of Agathys.
Does the Sanctuary spell end because I casted Armor of Agathys and after Sanctuary and the spell affects the goblin when it takes damages ?
Would Sanctuary end if I were to cast Armor of Agathys 10 mins ago because this dark and shadowy dungeon looked dangerous ?
Would Sanctuary break if the damage reflection came from the effect of a racial trait or a kinda spiky enchanted armour ?