Difference between revisions of "Anti-magic field"

From NetHackWiki
Jump to navigation Jump to search
m (explicit references block)
(rephrasing, refsrc, ver, commit format, etc.)
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
 
}}
 
}}
  
The '''anti-magic field''' (also known as the '''anti-magic trap''') is a [[trap]] in NetHack which can reduce your spell power or damage you.
+
The '''anti-magic field''' (also known as the '''anti-magic trap''') is a type of [[trap]] that appears in ''[[NetHack]]''. It can sap away your magic power and even your health in some cases.
  
== Generation ==
+
==Generation==
Anti-magic fields can be generated on most levels. They are also guaranteed on several [[special level]]s:  
+
Anti-magic fields can be generated on most levels. They are also guaranteed on several [[special level]]s:
* the [[Knight quest]] locate level contains 7 anti-magic fields
+
 
* the [[Wizard quest]] locate level contains an anti-magic field
+
* The [[Knight quest]] locate level contains 7 anti-magic fields.
* almost every special level in [[Gehennom]] has at least one anti-magic field
+
* The [[Wizard quest]] locate level contains an anti-magic field.
 +
* Almost every special level in [[Gehennom]] has at least one anti-magic field.
  
 
== Effects ==
 
== Effects ==
Line 23: Line 24:
 
* are carrying an [[artifact]] which grants magic resistance by being carried; your own [[quest artifact]] is exempt.
 
* are carrying an [[artifact]] which grants magic resistance by being carried; your own [[quest artifact]] is exempt.
  
If you have [[phasing]], you take {{frac|4}} as much damage, rounded up. {{refsrc|src/trap.c|1417|version=NetHack 3.6.6}}
+
If you have [[phasing]], you take {{frac|4}} of that damage, rounded up.{{refsrc|src/trap.c|1417|version=NetHack 3.6.7}}
  
{{upcoming|3.7.0|Per {{commit|5c7c9d10ae7984667b533bb7038616dc81346a0f|this commit}}, anti-magic fields now drain 2d6 energy and half that of maximum energy. If you have magic resistance, you take d4 damage in addition to the energy drain.}}
+
{{upcoming|3.7.0|As of {{commit|5c7c9d10ae7984667b533bb7038616dc81346a0f|commit 5c7c9d1}}, anti-magic fields now drain 2d6 energy and half that of maximum energy. If you have magic resistance, you take d4 damage in addition to the energy drain.}}
  
 
===Effect on monsters===
 
===Effect on monsters===
Monsters that have a special attack such as [[Monster spellcasting|spellcasting]] or a [[breath weapon]] will also be affected by this trap. The timeout for their special attack increases by 2d2 turns unless they are magic resistant, in which case they lose HP. This will also reveal the trap. Other monsters do not trigger this trap and do not reveal it when they pass over it. {{refsrc|src/trap.c|2591|version=NetHack 3.6.6}}
+
Monsters are only affected by this trap if they have a special attack such as [[Monster spellcasting|spellcasting]] or a [[breath weapon]]; the timeout for their special attack increases by 2d2 turns unless they are magic resistant, in which case they lose HP. This will also reveal the trap.{{refsrc|src/trap.c|2591|version=NetHack 3.6.7}}
  
== Removal ==
+
==Removal==
 
When standing on an anti-magic field, you can [[dig]] down to replace it with a pit.
 
When standing on an anti-magic field, you can [[dig]] down to replace it with a pit.
{{upcoming|3.7.0|Per {{commit|c7229627137407d3056233f8e85b79830f0b6a57|this commit}}, anti-magic fields can be exploded by zapping [[cancellation]] at them.}}
+
{{upcoming|3.7.0|As of {{commit|c7229627137407d3056233f8e85b79830f0b6a57|commit c722962}}, anti-magic fields will explode if you zap a [[wand of cancellation]] or [[spell of cancellation]] at them.}}
  
== Strategy ==
+
==Strategy==
These traps are usually harmless. In theory anti-magic fields could be harmful to some early-game [[spellcaster]]s, especially [[pacifist]]s who must cast [[spellbook of healing|healing]] often and cannot gain [[experience]] easily. Players who spend an early [[wish]] on a source of magic resistance may also be vulnerable.
+
In theory anti-magic fields could be harmful to some early-game [[spellcaster]]s, especially [[pacifist]]s who must cast [[spellbook of healing|healing]] often and cannot gain [[experience]] easily; players who spend an early [[wish]] on a source of magic resistance may also be vulnerable. In practice, however, the trap tends to be a nuisance at worst.
  
 
Intentionally stepping on an anti-magic field is a somewhat risky way of identifying the [[cloak of magic resistance]].
 
Intentionally stepping on an anti-magic field is a somewhat risky way of identifying the [[cloak of magic resistance]].
  
== History ==
+
==History==
 
The anti-magic field was introduced in [[NetHack 1.3d]].
 
The anti-magic field was introduced in [[NetHack 1.3d]].
  
== Messages ==
+
==Messages==
 
{{message|You feel your magical energy drain away.|You are not magic resistant, and your Pw was drained.}}
 
{{message|You feel your magical energy drain away.|You are not magic resistant, and your Pw was drained.}}
 
 
{{message|You feel momentarily lethargic.|You are not magic resistant, but you have zero maximum Pw to drain.}}
 
{{message|You feel momentarily lethargic.|You are not magic resistant, but you have zero maximum Pw to drain.}}
 
 
{{message|You feel sluggish.|You are magic resistant, and took less than {{frac|4}} your HP as damage.}}
 
{{message|You feel sluggish.|You are magic resistant, and took less than {{frac|4}} your HP as damage.}}
 
 
{{message|You feel very lethargic.|You are magic resistant, and took more than {{frac|4}} your HP as damage.}}
 
{{message|You feel very lethargic.|You are magic resistant, and took more than {{frac|4}} your HP as damage.}}
 
 
{{message|You feel unbearably torpid!|You are magic resistant, and were killed by HP loss.}}
 
{{message|You feel unbearably torpid!|You are magic resistant, and were killed by HP loss.}}
 
 
{{message|<monster> seems lethargic.|A monster lost some Pw from an anti-magic field.}}
 
{{message|<monster> seems lethargic.|A monster lost some Pw from an anti-magic field.}}
 
 
{{message|<monster> is killed by the compression from an anti-magic field!|A magic-resistant monster lost enough HP from an anti-magic field to die.}}
 
{{message|<monster> is killed by the compression from an anti-magic field!|A magic-resistant monster lost enough HP from an anti-magic field to die.}}
  
== References ==
+
==References==
<References />
+
<References/>
{{nethack-366}}
+
{{nethack-367}}
 
[[Category:Traps]]
 
[[Category:Traps]]

Latest revision as of 12:12, 26 July 2023

^ anti-magic field Anti-magic field.png
Generates Anywhere
Effect Pw loss, or HP loss if magic resistant

The anti-magic field (also known as the anti-magic trap) is a type of trap that appears in NetHack. It can sap away your magic power and even your health in some cases.

Generation

Anti-magic fields can be generated on most levels. They are also guaranteed on several special levels:

  • The Knight quest locate level contains 7 anti-magic fields.
  • The Wizard quest locate level contains an anti-magic field.
  • Almost every special level in Gehennom has at least one anti-magic field.

Effects

Anti-magic fields drain between 2 and your experience level + 1 points of your spell power. If this would cause your spell power to go below zero, your maximum spell power will be permanently reduced by that amount, and your spell power becomes zero. Anti-magic fields have no effect on your maximum spell power if it is zero.

If you have magic resistance, you take damage instead of losing power. The damage is at least d4, with an additional d4 each if you:

If you have phasing, you take 14 of that damage, rounded up.[1]

The following information pertains to an upcoming version (3.7.0). If this version is now released, please verify that it is still accurate, then update the page to incorporate this information.

As of commit 5c7c9d1, anti-magic fields now drain 2d6 energy and half that of maximum energy. If you have magic resistance, you take d4 damage in addition to the energy drain.

Effect on monsters

Monsters are only affected by this trap if they have a special attack such as spellcasting or a breath weapon; the timeout for their special attack increases by 2d2 turns unless they are magic resistant, in which case they lose HP. This will also reveal the trap.[2]

Removal

When standing on an anti-magic field, you can dig down to replace it with a pit.

The following information pertains to an upcoming version (3.7.0). If this version is now released, please verify that it is still accurate, then update the page to incorporate this information.

As of commit c722962, anti-magic fields will explode if you zap a wand of cancellation or spell of cancellation at them.

Strategy

In theory anti-magic fields could be harmful to some early-game spellcasters, especially pacifists who must cast healing often and cannot gain experience easily; players who spend an early wish on a source of magic resistance may also be vulnerable. In practice, however, the trap tends to be a nuisance at worst.

Intentionally stepping on an anti-magic field is a somewhat risky way of identifying the cloak of magic resistance.

History

The anti-magic field was introduced in NetHack 1.3d.

Messages

You feel your magical energy drain away.
You are not magic resistant, and your Pw was drained.
You feel momentarily lethargic.
You are not magic resistant, but you have zero maximum Pw to drain.
You feel sluggish.
You are magic resistant, and took less than 14 your HP as damage.
You feel very lethargic.
You are magic resistant, and took more than 14 your HP as damage.
You feel unbearably torpid!
You are magic resistant, and were killed by HP loss.
<monster> seems lethargic.
A monster lost some Pw from an anti-magic field.
<monster> is killed by the compression from an anti-magic field!
A magic-resistant monster lost enough HP from an anti-magic field to die.

References