Greater Contingency (5e Spell)
From D&D Wiki
|Casting time:||1 hour|
|Components:||V, S, M (a statuette of yourself smelted from adamantine and decorated with gems worth at least 5,000 gp)|
Choose a spell of 7th level or lower that you can cast, that has a casting time of 1 action to 1 hour, and that can target you. You cast that spell–called the contingent spell–as part of casting greater contingency, expending spell slots for both, but the contingent spell doesn’t come into effect. Instead, it takes effect when a certain circumstance occurs. You describe that circumstance when you cast the two spells. For example, a greater contingency cast with plane shift might stipulate that plane shift comes into effect if you are forced to another plane of existence.
The contingent spell takes effect immediately after the circumstance is met for the first time, whether or not you want it to, and then greater contingency ends.
The contingent spell takes effect only on you, even if it can normally target others. You can use only one greater contingency spell at a time. If you cast this spell again, the effect of another greater contingency spell on you ends. Also, greater contingency ends on you if its material component is ever not on your person.