Energy Foreknowledge 2014
4th-level divination
When you cast this spell, you gain resistance to every type of energy listed above that is dealt by the spell hitting you. This resistance lasts until the end of your next turn.
At higher levels
When you cast this spell using a spell slot of 5th level or higher, you can include one additional ally in its effect for each slot level above 4th. Affected allies must be within 15 feet of you.
Source: Deep Magic for 5th Edition (Kobold Press) · License: OPEN GAME LICENSE Version 1.0a details