Wish
9th-level conjuration
Casting Time: 1 action
Range: Self
Components: V
Duration: Instantaneous
Wish is the mightiest spell a mortal can cast. By simply speaking aloud, you can alter reality itself.
The basic use of this spell is to duplicate any other spell of 8th level or lower. If you use it this way, you don't need to meet any requirements to cast this spell, including costly components. The spell simply takes effect.
Alternatively, you can create one of the following effects of your choice.
Object Creation. You can create one object of up to 25,000 gold pieces in value that isn't a magic item. The object can be no more than 300 feet in ant dimension, and it appears in an unoccupied space that you can see on the ground.
Instant Health. You allow yourself and up to twenty creatures that you can see to regain all Hit Points, and you end all effects on them listed in the Greater Restoration spell.
Resistance. You grant up to 10 creatures that you can see Immunity to one damage type that you choose. This immunity lasts for up to 8 hours, and you can end it at any time (no action required). You can end it for all creatures simultaneously, or individually.
Spell Immunity. You grant up to ten creatures you can see immunity to a single spell or other magical effect for 8 hours. This can be used to negate a lich's power word kill or a dragons breath attack.
Sudden Learning. You can replace one of your feats or an allies feat with another feat of your choice. The ally must be willing, and you or the ally must meet all the requirements for the feat.
Roll Redo. You undo a single recent event by forcing a reroll of any die made within the last round, including your last turn. Reality reshapes to accommodate the new result. For example, a Wish spell could undo an ally's failed saving throw or a foe's critical hit. You can force the reroll to be made with advantage or disadvantage, your choice, and you can choose whether to use the new roll or the original roll.
Reshape Reality. You may wish for something not included in any of the other effects. To do so, state your wish to the DM as precisely as possible. The DM has great latitude in ruling what occurs in such an instance; the greater the wish, the greater the likelihood that something goes wrong. This spell might simply fail, the effect you desire might be achieved only in part, or you might suffer an unforeseen consequence as a result of how you worded the wish. For example, wishing that a villain were dead might propel you forward in time to a period when that villain is no longer alive, effectively removing you from the game. Similarly, wishing for a Legendary magic item or an Artifact might instantly transport you to the presence of the item's current owner. If your wish is granted and its effects have consequences for a whole community, region, or world, you are likely to attract powerful foes. If your wish would affect a god, the god's divine servants might instantly intervene to prevent it or to encourage you to craft the wish in a particular way. If your wish would undo the universe itself, you might see the image of a god in your mind for a moment; shaking their head disappointingly as your wish fails.
The stress of casting Wish to produce any effect other than duplicating another spell weakens you. After enduring that stress, each time you cast a spell until you finish a long rest, you take 1d10 necrotic damage per level of the spell. This damage cannot be reduced or prevented in any way. In addition, your strength score becomes 3 for 2d4 days.
Finally, if you used the Reshape Reality option, roll a d100. If your result is a 50 or lower, you can never under any circumstances cast the Wish spell ever again in addition to all the previously listed effects. The d100 roll cannot be altered in any way.