Armor of agathys gives damage whenever you are hit as long as temporary HP from AoA are still available. Whatever hits you doesn't have to do even damage. For example, if you were immune to physical and got hit by an axe, AoA would still damage the attacker.
Last edited by Nebuul; 02/08/22 09:40 PM. Reason: Autocorrect typo