Absorption(Complete Arcane, p. 96)
Level: Sorcerer 9, Wizard 9, Wu Jen 9,
Components: V, S,
Casting Time: 1 standard action
Duration: Until expended or 10 min./level
Spells and spell-like effects that target you are absorbed, their energy stored to power spells of your own. Absorption absorbs only ranged spells that have you as a target. Touch spells, effect spells, and area spells that affect you cannot be absorbed.
Once the spell is cast, you can absorb 1d4+6 spell levels (rolled secretly by the DM). The level of each spell you absorb is subtracted from the total. If a spell is only partially absorbed (because its level exceeds the number of levels remaining to be absorbed), divide the number of spell levels left unabsorbed by the original spell level. For spells that deal damage, use the result to determine what fraction of the damage you take. For spells that create effects, use the result as a percentage chance to be affected.
For example, you have three spell levels of absorption remaining and are struck by dominate person (cast as a 5th-level spell). Absorption absorbs three levels of the spell, resulting in a 40% chance (2/5) that you will be affected normally. If affected, any saving throw the spell allows you still applies. Likewise, if you're struck by disintegrate (cast as a 6th-level spell) with four levels of absorption remaining, two levels of the spell remain, and you take only 33% (2/6) of the damage you would normally take from the spell.
You can use captured spell energy to cast any spell you know or have prepared, but spells so cast don't disappear from your list of prepared spells or count against the number of spells you can normally cast per day (so you so must keep a running total of spell levels absorbed and used). The levels of spell energy you have stored must be equal to or greater than the level of the spell you want to cast, and you must have at hand (and expend) any material components required for the spell.