Anti-Magic Cloud
(Abjuration, Alteration)

Range:  0
Components:  V, S, M
Duration:  1 day per level
Casting Time:  1 round per level
Area of Effect:  One 10?10?5 yard per level cloud
Saving Throw:  Special

This spell creates a large black cloud that drains magic from items, functioning spells, and even the casting ability of wizards and priests. The cloud appears around the spell caster, and will affect him for as long as the wizard stays within the cloud. The cloud will move in the direction of the wind at half the wind's velocity. If the wind pushes the cloud off of a cliff, the black menace will sink, attempting to hang low to the ground. If the cloud is in a location where there is no wind, it will remain in the same location.
The cloud immediately drains any functioning spells of ninth level or less, automatically. No spell casting can take place within its influence, and a spell cast into the cloud will disperse upon entering. No properties from magical items may function within the cloud; be it an  arrow, +1 or a staff of the magi. Furthermore, the cloud can permanently drain magical items. Magic items are drained as follows:

Base chance of draining	100%
per level of creator	-5%

A draining roll is made for each item for each round that it is within the cloud. There is no "partial draining" for any item; either the item is as magical as before, or it is dead of all magic.
For example, a sword, +3 is brought into the cloud and misses its draining roll; it has become drained of magic and will remain so, even when brought from the cloud. In another example, a sword, +3 that makes its saving throw for a given round is still considered to be non-magical for that round. However, if it were removed from the cloud by the end of the round, it would again be a sword, +3.
Artifacts cannot be drained, but they do not function within the cloud.
For magical items that may not be completely covered by the cloud (Daern's instant fortress, for example), a saving throw is still required for the portion of the item that is still within the cloud. If a portion of a large item is drained, it is up to the DM to determine the outcome; for example, the item might function with only a fraction of its original power or might completely implode.
The cloud affects an activated cube of force as follows: a failed draining roll must be generated for the force field before anything within the cube's protected field, including the cube itself, can be affected.
The material components for the spell are a star sapphire of no less than 5,000 gp in value, and a sanctified silver holy symbol of the primary god of magic.

