Difference between revisions of "Magic cancellation"

From NetHackWiki
Jump to navigation Jump to search
(lede)
 
(127 intermediate revisions by 39 users not shown)
Line 1: Line 1:
 +
{{For|the effects of a [[wand of cancellation]] or a [[spell of cancellation]]|cancellation}}
 +
'''Magic cancellation''', or '''MC''' for short, is a graduated property in ''[[NetHack]]'' which protects the [[player]] character from certain non-damaging effects caused by a monster using a contact-making attack.
  
 +
==Description==
 +
Magic cancellation offers a certain amount of protection against "special melee attacks" made against a character - examples include [[poison]] from [[killer bee]] stings, [[lycanthropy]] caused by [[werejackal]] bites, and the [[green slime]]'s [[sliming]] attacks. Having the highest (best) grade of magic cancellation means that only {{frac|10}} of special melee attacks will succeed (assuming they would hit otherwise). This makes magic cancellation a high priority trait. A precise list of the special melee attacks that magic cancellation protects against is provided in the [[#How it works|section below]].
  
{{For|the effects of a [[wand of cancellation]] or a [[spell of cancellation]]|Cancellation}}
+
Magic cancellation must not be confused with [[cancellation]] caused by a wand or spell, nor with [[magic resistance]]. See {{sa|Differences from cancellation and magic resistance|sectionsign=true}} for further details.
  
 +
Your current level of magic cancellation can be verified via any source of [[enlightenment]]; "You are warded" means you have MC1, "You are guarded" is MC2, and "You are protected" is MC3.
  
 +
==Sources==
 +
The most common source of magic cancellation is [[armor]]. Each piece of armor has a magic cancellation number (MC number) ranging from 0 (worst) to 3 (best). Note that magic cancellation from armor is ''not'' cumulative—the player's magic cancellation is the maximum of that provided by any single piece of armor worn. This means that if you are wearing a [[chain mail]] with MC 1, ''and'' a [[dwarvish cloak]] with MC 1, then your magic cancellation is still 1.
  
 +
Magic cancellation can also be granted by [[protection]], either [[intrinsic]] or [[extrinsic]].  Extrinsic protection augments your magic cancellation by 1, to a maximum of 3.  Intrinsic protection or temporary protection from the [[spell of protection]] counts as magic cancellation 1, but doesn't stack with armor sources or extrinsic protection.  The sources of extrinsic protection are the [[ring of protection]], the [[Tsurugi of Muramasa]], and the [[Mitre of Holiness]]; more than one such source provides no additional benefit.  Intrinsic protection is granted when you get an [[AC]] bonus by donating to an [[aligned priest]] or by a [[favor]] when [[pray]]ing.  Intrinsic protection may be lost by a [[gremlin]]'s special attack or eating a [[disenchanter]] corpse; if so, donating the appropriate amount to an aligned priest will restore it, even if it would fail to improve your AC.  [[High priest]]s have extrinsic protection, and [[aligned priest]]s and monsters represented by {{monsym|Angel}} have intrinsic protection.
  
 +
The following list contains all the sources of magic cancellation:
  
 
 
'''Magic cancellation''', or, shortly, '''MC''', is a property of some pieces of [[armor]] which protects against a wide variety of special melee attacks by monsters, such as [[poisonous]] [[killer bee]] stings and [[lycanthropy]] through [[werejackal]] bites. Generally, magic cancellation protects against magical attacks where the monster touches the player with some part of its body. Each piece of armor has a magic cancellation number ranging from 0 to 3, where 0 is the lowest (worst) and 3 is the highest (best). Note that magic cancellation is ''not'' cumulative ― your magic cancellation is the maximum of that provided by any single piece of your armour. Having the highest magic cancellation means that only 1/50 of magical, body-to-body melee attacks will succeed (assuming they would hit otherwise). Note that not all special attacks are considered magical, see the list below for details.
 
 
<!--Magic cancellation is one of the more complex -->
 
 
==Tables==
 
 
The relationship between magic cancellation level and chance of a body-to-body magical attack success is as follows:
 
 
{|class="wikitable"
 
{|class="wikitable"
!Magic cancellation number
+
!Armor
!Chance of attack succeeding
+
!Armor type
 +
!MC
 +
|-
 +
|Extrinsic protection
 +
|style="text-align:center" rowspan="3" |N/A
 +
|style="text-align:center" rowspan="1" |+1 (max 3)
 +
|-
 +
|Intrinsic protection
 +
|style="text-align:center" rowspan="2" |1 (if no extrinsic)
 +
|-
 +
|[[spell of protection]]
 +
|-
 +
|[[alchemy smock]]
 +
|style="text-align:center" rowspan="9" |[[cloak]]
 +
|style="text-align:center" rowspan="20" |1
 +
|-
 +
|-
 +
|[[cloak of displacement]]
 +
|-
 +
|-
 +
|[[cloak of invisibility]]
 +
|-
 +
|-
 +
|[[cloak of magic resistance]]
 +
|-
 +
|-
 +
|[[dwarvish cloak]]
 +
|-
 +
|-
 +
|[[elven cloak]]
 +
|-
 +
|-
 +
|[[leather cloak]]
 
|-
 
|-
|Magic Cancellation 0
 
|<math>\frac{150}{150}</math>, i.e. 100%
 
 
|-
 
|-
|Magic Cancellation 1
+
|[[mummy wrapping]]
|<math>\frac{101}{150}</math>, i.e. ~67%
 
 
|-
 
|-
|Magic Cancellation 2
 
|<math>\frac{52}{150}</math>, i.e. ~35%
 
 
|-
 
|-
|Magic Cancellation 3
+
|[[orcish cloak]]
|<math>\frac{3}{150}</math>, i.e. 2%
+
|-
|}
+
|-
 
+
|[[banded mail]]
All [[cloak]]s, some pieces of [[body armor]] and the [[cornuthaum]] provide non-zero magic cancellation. The following pieces of armor are the only ones with non-zero magic cancellation:
+
|style="text-align:center" rowspan="10" |[[body armor]]
{|class="wikitable"
+
|-
!Armor name
+
|[[bronze plate mail]]
!Armor type
 
!Magic cancellation number
 
 
|-
 
|-
|[[alchemy smock]]
 
|[[cloak]]
 
|1
 
 
|-
 
|-
 
|[[chain mail]]
 
|[[chain mail]]
|[[body armor]]
 
|1
 
 
|-
 
|-
|[[mummy wrapping]]
+
|-
|[[cloak]]
+
|[[leather armor]]
|1
+
|-
 
|-
 
|-
 
|[[orcish chain mail]]
 
|[[orcish chain mail]]
|[[body armor]]
+
|-
|1
 
 
|-
 
|-
 
|[[orcish ring mail]]
 
|[[orcish ring mail]]
|[[body armor]]
 
|1
 
 
|-
 
|-
|[[leather cloak]]
+
|-
|[[cloak]]
+
|[[ring mail]]
|1
+
|-
 +
|-
 +
|[[scale mail]]
 +
|-
 
|-
 
|-
 
|[[splint mail]]
 
|[[splint mail]]
|[[body armor]]
+
|-
|1
 
 
|-
 
|-
 
|[[studded leather armor]]
 
|[[studded leather armor]]
|[[body armor]]
 
|1
 
 
|-
 
|-
|[[cloak of displacement]]
 
|[[cloak]]
 
|2
 
 
|-
 
|-
|[[cloak of invisibility]]
+
|[[cornuthaum]]
|[[cloak]]
+
|style="text-align:center" rowspan="1" |[[helm]]
|2
+
|-
 +
|-
 +
|[[oilskin cloak]]
 +
|style="text-align:center" rowspan="2" |[[cloak]]
 +
|style="text-align:center" rowspan="6" |2
 +
|-
 +
|[[robe]]
 
|-
 
|-
|[[cornuthaum]]
 
|[[helmet]]
 
|2
 
 
|-
 
|-
 
|[[crystal plate mail]]
 
|[[crystal plate mail]]
|[[body armor]]
+
|style="text-align:center" rowspan="4" |[[body armor]]
|2
 
 
|-
 
|-
|[[dwarvish cloak]]
+
|[[dwarvish mithril-coat]]
|[[cloak]]
+
|-
|2
+
|-
 +
|[[elven mithril-coat]]
 
|-
 
|-
|[[orcish cloak]]
 
|[[cloak]]
 
|2
 
 
|-
 
|-
 
|[[plate mail]]
 
|[[plate mail]]
|[[body armor]]
+
|-
|2
 
 
|-
 
|-
 
|[[cloak of protection]]
 
|[[cloak of protection]]
|[[cloak]]
+
|style="text-align:center" rowspan="1" |[[cloak]]
|3
+
|style="text-align:center" rowspan="1" |3
 
|-
 
|-
|[[cloak of magic resistance]]
+
|}
|[[cloak]]
+
 
|3
+
{{upcoming|NetHack 3.7.0|A worn [[amulet of guarding]] adds +2 to magic cancellation.}}
 +
 
 +
==Mechanics==
 +
Magic cancellation protects the player by reducing the ''probability'' of special melee attacks occurring.<!-- Really "occurring"? Or "damaging the player"? -->
 +
* The attack must first hit the player. This means passing the player's [[armor class]]. Unless you are [[resistant]] to the damage type of the attack, you will be dealt damage, which reduces your [[hitpoints]]. This occurs regardless of whether the damage type was ordinary physical, or a special type such as [[poison]].
 +
* After this, there is a probability of special effects occurring, for instance:
 +
** 100% [[Sticking attack|Sticking-to]], [[teleport]], [[sliming]], [[disenchanting]], [[disease]]
 +
** {{frac|3}}  [[Drain level]] and [[paralysis]]
 +
** {{frac|4}}  [[Lycanthropy]], [[slowing attack]], and [[drain energy]]
 +
** {{frac|5}}  [[Sleep]]
 +
** {{frac|8}}  [[Poison]]
 +
* The monster itself must not be [[cancellation|cancelled]]{{refsrc|src/mhitu.c|892|version=NetHack 3.6.0}}.
 +
* Finally, the attack must pass the player's magic cancellation aura. The chance of this happening is 1 &minus; 0.3×MC, or listed in the table below:
 +
 
 +
{|class="wikitable"
 +
! MC !! Effect probability
 
|-
 
|-
|[[dwarvish mithril-coat]]
+
| 0 || 100%
|[[body armor]]
 
|3
 
 
|-
 
|-
|[[elven cloak]]
+
|1 || 70%
|[[cloak]]
 
|3
 
|-
 
|[[elven mithril-coat]]
 
|[[body armor]]
 
|3
 
 
|-
 
|-
|[[oilskin cloak]]
+
|2 || 40%
|[[cloak]]
 
|3
 
 
|-
 
|-
|[[robe]]
+
|3 || 10%
|[[cloak]]
 
|3
 
 
|}
 
|}
  
Most players like to have maximum magic cancellation, but some favour the benefits conferred by a [[cloak of displacement]] (MC 2).
+
If all these tests are passed, the player will suffer the special effect. In the case of [[fire]], [[cold]], and [[shock]], there is further a test for determining if any inventory items are damaged or destroyed.
  
==Difference between magic cancellation, cancelling a monster, and magic resistance==
+
===Cancelable effects===
Magic cancellation is a property of armor that reduces the probability of certain special monster melee attacks of succeeding. A monster can also be ''cancelled'' by zapping a [[wand of cancellation|wand]] or a [[spellbook of cancellation|spell]] of cancellation. This is somewhat different from magic cancellation. Cancelling a monster completely removes the monster's ability to perform its special melee attacks, while magic cancellation only reduces the probability of those attacks succeeding against the player. Also, the attacks affected by cancelling a monster are not exactly the same as those prevented though magic cancellation. See the article on [[cancellation]] to compare effects.
+
Understanding how magic cancellation works requires some understanding of how an attack works in NetHack. An attack has two characteristics: ''attack type'' (e.g. bites and stings) and ''damage type'' (e.g. physical or poisonous). A [[soldier ant]], for instance, has two attacks: a bite which does 2d4 physical damage (i.e. ordinary damage), and a sting which does 3d4 [[poison]] damage. Magic cancellation will ''not'' protect against the 2d4 physical damage from the bite, ''nor'' will it prevent the 3d4 damage caused by the sting. It will, however, protect against the special effects from the [[poison]]ous sting, which randomly include [[hitpoint]] reduction, [[attribute]] reduction, and [[instadeath]].
  
Magic cancellation is not the same as [[magic resistance]]. Magic resistance is an [[extrinsic]] that protects against [[spell]], [[wand]], and [[trap]] effects and damage.
+
There is no obvious pattern to what magic cancellation does and doesn't protect against. Shortly put, magic cancellation protects against ''certain'' attack types that deal a ''certain'' type of damage. This relation is shown in the table below. To be prevented by magic cancellation, both the attack type and damage type must be in the <span style="background-color:#ffdead;">orange area</span> of the table. If either the attack type or damage type is outside the orange area, magic cancellation will have ''no effect'' on the attack.
  
==How it works==
+
In earlier versions of the game, the idea was that some types of armor covered your entire body surface, so the attacker effectively could not touch you despite his successful attack. Over time, with the addition of the [[cornuthaum]] and many types of special attacks, this point has become moot, and the current explanation can only be "it's magic".
The effects of magic cancellation depend on the ''attack type'' (e.g. bites and breaths) and on the ''damage type'' (e.g. physical or cold). Magic cancellation will only work against ''certain'' attack types that deal a ''certain'' type of damage.  
 
  
 
{|class="wikitable"
 
{|class="wikitable"
!colspan="2"|Type of attack
+
!colspan="2"|Attack type
!colspan="2"|Type of damage
+
!colspan="2"|Damage type
 
|-
 
|-
!style="width:25%"|Attack type unaffected  
+
!style="width:25%"|Attack type unaffected
!width="250px" style="background:#ffdead; width:25%"|Attack type prevented  
+
!width="250px" style="background:#ffdead; width:25%"|Attack type prevented
!width="250px" style="background:#ffdead; width:25%"|Damage type prevented  
+
!width="250px" style="background:#ffdead; width:25%"|Damage type prevented
 
!style="width:25%"|Damage type unaffected
 
!style="width:25%"|Damage type unaffected
 
|-
 
|-
Line 156: Line 171:
 
* [[Gaze attack]]s
 
* [[Gaze attack]]s
 
* [[Magic spell]]s
 
* [[Magic spell]]s
 +
* [[Ranged weapon]] attacks<ref group="note" name="melee_only"/>
 
|valign="top" style="background:#ffdead;"|
 
|valign="top" style="background:#ffdead;"|
 
* Claw
 
* Claw
 
* Bite
 
* Bite
* Kick <sup>([[#note1|note 1]])</sup>
+
* Kick<ref group="note" name="never_applies"/>
* Head butt <sup>([[#note1|note 1]])</sup>
+
* Head butt<ref group="note" name="never_applies"/>
 
* Touch
 
* Touch
 
* Sting
 
* Sting
* Tentacle attack <sup>([[#note1|note 1]])</sup>
+
* Tentacle attack<ref group="note" name="never_applies"/>
* Grabbing attacks <sup>([[#note1|note 1]])</sup>
+
* [[Holding attack]]s<ref group="note" name="never_applies"/>
* Weapon attacks
+
* Melee weapon attacks<ref group="note" name="melee_only"/>
 
|valign="top" style="background:#ffdead;"|
 
|valign="top" style="background:#ffdead;"|
* [[Fire]] (e.g. [[fire ant]] bite)
+
* [[Fire]] (burns scrolls and boils potions)
* [[Cold]] (e.g. [[lich]] touch)
+
* [[Cold]] (shatters potions)
* [[Shock]] (e.g. [[electric eel]] bite)
+
* [[Shock]] (detonates rings and wands)
* [[Sleep]] (e.g. [[homunculus]] bite)
+
* [[Sleep]] (completely immobilized)
* [[Poison]] (e.g. [[killer bee]] sting)
+
* [[Poison]] (hitpoint and attribute reduction, [[instadeath]])
* [[Paralysis]] (e.g. [[guardian naga]] bite)
+
* [[Paralysis]] (player completely immobilized)
* [[Drain life]] (e.g. [[barrow wight]] weapon attack)
+
* [[Drain life]] (player loses levels)
* [[Sticky attack]] (e.g. [[large mimic]] bite)
+
* [[Sticky attack]] (inability to move to another square)
* [[Lycanthropy]] (e.g. the [[werejackal]] bite when it is in animal form)
+
* [[Lycanthropy]] (player regularly changes form)
* [[Slowing attack]] (e.g. [[Shade]] touch)
+
* [[Slowing attack]] (reduces player speed)
* [[Teleport]] by the [[quantum mechanic]] claw
+
* [[Teleport]] (randomly teleports player)
* [[Sliming]] by the [[green slime]] touch
+
* [[Sliming]] (kills player in a few turns)
* [[Disenchanting]] by the [[disenchanter]] claw <sup>([[#note2|note 2]])</sup>
+
* [[Disenchanting]] (reduces enchantment on items)
* Constitution draining [[poison]] by the [[rabid rat]] bite
+
* [[Dexterity]]- or [[constitution]]-draining [[poison]]
* Dexterity draining [[poison]] by the [[quasit]] claw
+
* [[Power]] draining (reduces power)
* [[Power]] draining by the [[energy vortex]] <sup>([[#note3|note 3]])</sup>
 
 
|valign="top"|
 
|valign="top"|
* Ordinary physical damage
+
* Ordinary physical
* [[Magic missile]] damage
+
* [[Magic missile]]
* [[Disintegration]] effects
+
* [[Disintegration]]
* [[Acid]] damage
+
* [[Acid]]
* [[Blind]]ing effects
+
* [[Blind]]ing
* [[Stun]]ning effects
+
* [[Stun]]ning
* Leg damage by [[Xan]]s
+
* Leg damage by [[xan]]s
* [[Petrification]] effects
+
* [[Petrification]]
* [[Gold stealing]] effects by [[leprechaun]]
+
* [[Gold stealing]] effects by [[leprechaun]]s
* [[Item stealing]] effects
+
* [[Item stealing]]
* [[Erosion]] effects (including [[rusting]], [[corroding]] and [[rotting]])
+
* [[Erosion]] (including rust, rot, and corrosion)
* [[Confusion]] effects
+
* [[Confusion]]
* [[Digestion]] damage
+
* [[Digestion]]
 
* [[Healing]] effects by [[nurse]]s
 
* [[Healing]] effects by [[nurse]]s
* [[Drowning]] effects
+
* [[Drowning]]
* [[Intelligence drain]] effects by [[mind flayer]]
+
* [[Intelligence drain]]
 
* [[Disease]] effect by [[Juiblex]]
 
* [[Disease]] effect by [[Juiblex]]
* [[Seduction]] effects
+
* [[Seduction]]
* [[Hallucination]] effects
+
* [[Hallucination]]
* [[Amulet stealing]] effects by the [[Wizard of Yendor]]
+
* [[Amulet stealing]] by the [[Wizard of Yendor]]
* [[Intrinsic-stealing]] effects by [[gremlin]]s
+
* [[Intrinsic-stealing]] by [[gremlin]]s
* Random [[clerical spell]] effects, [[magic spell]] effects or [[breath weapon]] effects
+
* Random [[clerical spell]], [[magic spell]] or [[breath weapon]] damage
* Special damage effects of the [[Riders]]
+
* Special damage of the [[Riders]]
 
|-
 
|-
!  
+
!Examples &ndash; unaffected due to attack type
!style="background:#ffdead;" colspan="2"|Examples  
+
!style="background:#ffdead;" colspan="2"|Examples &ndash; prevented due to combination of attack type and damage type
!
+
!Examples &ndash; unaffected due to damage type
 
|-
 
|-
|
+
|valign="top"|
|style="background:#ffdead;" colspan="2"|
+
*[[Floating eye]] passive paralysis attack
 +
*[[Disenchanter]] passive disenchanting attack
 +
*[[Guardian naga]] spitting poison
 +
*[[Ice vortex]] engulfing cold
 +
*[[Red dragon]] fire breath
 +
*[[Yellow light]] blinding explosion
 +
*[[Medusa]] petrifying gaze
 +
*[[Pyrolisk]] fire gaze
 +
*[[Lich]] magic spells
 +
|valign="top" style="background:#ffdead;" colspan="2"|
 
* [[Fire]] damage from a [[fire ant]] bite
 
* [[Fire]] damage from a [[fire ant]] bite
 
* [[Cold]] damage from a [[lich]] touch
 
* [[Cold]] damage from a [[lich]] touch
Line 222: Line 246:
 
* [[Drain life]] by a [[barrow wight]] weapon attack
 
* [[Drain life]] by a [[barrow wight]] weapon attack
 
* [[Sticky attack|Sticking-to]] caused by a [[large mimic]] bite
 
* [[Sticky attack|Sticking-to]] caused by a [[large mimic]] bite
* [[Lycanthropy]] caused by [[werejackal]] bite when it is in animal form
+
* [[Lycanthropy]] caused by a [[werejackal]] bite when it is in animal form
* [[Slowing attack|Slowing]] caused by the [[Shade]] touch
+
* [[Slowing attack|Slowing]] caused by a [[shade]] touch
* [[Teleport]] caused by the [[quantum mechanic]] claw
+
* [[Teleport]] caused by a [[quantum mechanic]] claw
* [[Sliming]] caused by the [[green slime]] touch
+
* [[Sliming]] caused by a [[green slime]] touch
* [[Disenchanting]] by the [[disenchanter]] claw <sup>([[#note2|note 2]])</sup>
+
* [[Disenchanting]] by a [[disenchanter]] claw<ref group="note" name="not_passive"/>
* Constitution draining [[poison]] by the [[rabid rat]] bite
+
* Constitution-draining [[poison]] by a [[rabid rat]] bite
* Dexterity draining [[poison]] by the [[quasit]] claw
+
* Dexterity-draining [[poison]] by a [[quasit]] claw
* [[Power]] draining by the [[energy vortex]] <sup>([[#note3|note 3]])</sup>
+
|valign="top"|
 +
*Physical damage due to [[tiger]] claws
 +
*[[Medusa]] petrifying gaze
 +
*[[Raven]] blinding claws
 +
*[[Petrification]] (stoning) due to a [[cockatrice]]'s touch or passive hissing attack
 +
*[[Seduction]] due to [[succubus]] bites
 +
*[[Intelligence drain]] due to [[mind flayer]] tentacle attacks
 +
*[[Purple worm]] engulfing digestion
 +
*[[Drowning]] due to [[giant eel]] wrapping
 +
*[[Hallucination]] caused by a [[black light]] exploding
 +
*[[Erosion]] due to [[brown pudding]] bites
 +
*[[Nymph]] stealing claw
 
|-
 
|-
 
|colspan="4"|
 
|colspan="4"|
* <cite id="note1">Note 1</cite>: The actual damage done by every signle kick, headbutt, tentacle attack, and grabbing attacks in the game are listed in the rightmost column. And hence they all bypass magic cancellation.
+
<references group="note">
* <cite id="note2">Note 2</cite>: It does not however protect against the [[passive]] disenchanting attack, since passive attacks are listed in the leftmost column.
+
<ref group="note" name="melee_only">Magic cancellation protects against special melee weapon attacks, such as [[level drain]] from a [[barrow wight]]s weapon, but it does ''not'' protect against weapons that are thrown or launched, such as [[poisoned]] arrows and darts.</ref>
* <cite id="note3">Note 3</cite>: Interestingly, the attack type is ''engulf'', which is listed as an attack affected by magic cancellation. This may be a bug in the source code.)
+
<ref group="note" name="never_applies">The type of damage done by every single kick, headbutt, tentacle attack, and grabbing attacks in the game are listed in the rightmost column "Damage type unaffected". And hence they all bypass magic cancellation.</ref>
 +
<ref group="note" name="not_passive">[[Disenchantment]] by the [[disenchanter]] claw is prevented, but magic cancellation does not however protect against the [[passive]] disenchanting attack, since passive attacks are listed in the leftmost column "Attack type unaffected".</ref>
 +
</references>
 
|}
 
|}
  
 +
==Differences from cancellation and magic resistance==
 +
{{main|Cancellation|Magic resistance}}
 +
 +
Magic cancellation is distinct from [[cancellation]], which a monster suffers when hit by a [[wand of cancellation|wand]] or [[spellbook of cancellation|spell]] of cancellation. Cancelling a monster completely removes the monster's ability to perform its special melee attacks, while magic cancellation only reduces the probability of those attacks succeeding against the player. Also, the attacks affected by cancelling a monster are not exactly the same as those prevented through magic cancellation. See the article on [[cancellation]] to compare effects.
  
===Damage from the following attack types ''can possibly'' be affected by magic cancellation ===
+
Magic cancellation is not the same as [[magic resistance]]. Magic resistance is an [[extrinsic]] that protects against [[spell]], [[wand]], and [[trap]] effects and damage.
Magic cancellation applies only to a certain types of damage delivered through only the following types of attacks. Except for the weapon attack, they all involve the monster touching the player with some part of their body:
+
 
* Claw
+
Magic cancellation is also different from intrinsic [[resistance]]s against [[fire]], [[cold]], and [[shock]] damage. If you suffer fire damage while [[fire resistant]], you won't be dealt hit point damage, but there is still a chance of items such as [[scroll]]s, [[spellbook]]s, and [[potion]]s being destroyed. Magic cancellation on the other hand won't prevent the damage, but it will reduce the probability of item-destroying effects occurring.
* Bite
+
 
* Kick (note that the actual damage done by all kick attacks in the game bypasses magic cancellation)
+
==Noteworthy interactions==
* Head butt (note that the actual damage done by all headbutts in the game bypasses magic cancellation)
+
* Magic cancellation does ''not'' protect against paralyzing [[passive attacks]] nor [[gaze attack]]s, which include the attacks of [[floating eye]]s and [[Medusa]].
* Touch
+
* Magic cancellation ''partially'' protects against [[disenchanter]]s; it prevents the [[disenchantment]] though the claws, but not through the disenchanter's passive attack.
* Sting
+
* Magic cancellation does ''not'' protect against the touch nor against the [[cockatrice#Hissing attack|hissing attack]] of the [[cockatrice]]. It is however possible to [[cancellation|cancel]] the cockatrice itself, using a [[wand of cancellation]] or [[spell of cancellation]]. This will remove its ability to petrify by hissing only.
* Tentacle attack (note that the actual damage done by all tentacle attacks in the game bypasses magic cancellation)
+
* [[Monster]]s, including [[pet]]s, enjoy magic cancellation from armor just as the player does. This is especially important if you rely on a powerful pet, as monsters cannot gain [[intrinsic]] resistances from [[eat]]ing [[corpse]]s.
* Grabbing attacks (note that the actual damage done by all grabbing attacks in the game bypasses magic cancellation)
+
{{upcoming|NetHack 3.7.0|Pets can gain intrinsics from eating, though MC is still good for preventing effects that can't be intrinsically resisted.}}
* Weapon attacks
 
  
===Damage types affected by magic cancellation===
+
==Strategy==
Assuming that the attack type can be affected by magic cancellation, the following damage types will be affected too:
+
Magic cancellation is a useful properly which gets more useful the more of it you have; a character with MC3 will suffer only {{frac|4}} as many cancellable attacks as one with MC2. However, its value must be weighed against its opportunity costs. Acquiring MC3 requires a cloak of protection, or one of the MC2 cloaks or suits and a source of extrinsic protection. Armor which provides MC2 or 3 doesn't provide the useful properties of the MC1 magic cloaks or MC0 dragon scale mail. In many cases, it's better to wear the cloak of magic resistance to protect yourself from polymorph traps and death magic, or silver dragon scale mail to protect your wands and rings from lightning. Most cancellable attacks have either resistances to negate them, or countermeasures to reverse their effects (fire for sliming, holy water for lycanthropy, Elbereth to unstick from mimics), so a well-prepared player may find magic cancellation a lower priority than more critical properties.
* [[Fire]] (e.g. [[fire ant]] bite)
 
* [[Cold]] (e.g. [[lich]] touch)
 
* [[Shock]] (e.g. [[electric eel]] bite)
 
* [[Sleep]] (e.g. [[homunculus]] bite)
 
* [[Poison]] (e.g. [[killer bee]] sting)
 
* [[Paralysis]] (e.g. [[guardian naga]] bite)
 
* [[Drain life]] (e.g. [[barrow wight]] weapon attack)
 
* [[Sticky attack]] (e.g. [[large mimic]] bite)
 
* [[Lycanthropy]] (e.g. the [[werejackal]] bite when it is in animal form)
 
* [[Slowing attack]] (e.g. [[Shade]] touch)
 
* [[Teleport]] by the [[quantum mechanic]] claw
 
* [[Sliming]] by the [[green slime]] touch
 
* [[Disenchanting]] by the [[disenchanter]] claw (note that it does not protect against the [[passive]] disenchanting attack)
 
* Constitution draining [[poison]] by the [[rabid rat]] bite
 
* Dexterity draining [[poison]] by the [[quasit]] claw
 
* [[Power]] draining by the [[energy vortex]] (interestingly, the attack type is ''engulf'', and magic cancellation is hence bypassed. This may be a bug in the source code.)
 
  
===Damage from the following attack types is ''never'' affected by magic cancellation===
+
Magic cancellation only protects from melee attacks, and characters with strong ranged attacks can generally kill the attackers from a distance before they become a threat. Beware of monsters (especially nasties) being summoned to you, though.
Regardless of the type of damage, the following attacks types will ''never'' be affected by magic cancellation:
 
* [[Passive attack]]s
 
* Spitting attacks
 
* [[Engulfing attack]]s
 
* [[Breath attack]]s
 
* [[Explosion]]s from proximity
 
* [[Explosion]]s from dying
 
* [[Gaze attack]]s
 
* [[Magic spell]]s
 
  
===Damage types ''not'' affected by magic cancellation===
+
If you want MC3, you may want to treat the ring of protection as a situational item, which you equip when a relevant monster appears and then swap out for a more generally useful one when the situation is dealt with. Priests and Samurai get protection from their quest artifacts; other roles must be lawful (at least temporarily) to wish for them.
The following monster damage/effects are ''not'' affected by magic cancellation, regardless of how the attack was delivered:
 
* Ordinary physical damage
 
* [[Magic missile]] damage
 
* [[Disintegration]] effects
 
* [[Acid]] damage
 
* [[Blind]]ing effects
 
* [[Stun]]ning effects
 
* Leg damage by [[Xan]]s
 
* [[Petrification]] effects
 
* [[Gold stealing]] effects by [[leprechaun]]
 
* [[Item stealing]] effects
 
* [[Erosion]] effects (including [[rusting]], [[corroding]] and [[rotting]])
 
* [[Confusion]] effects
 
* [[Digestion]] damage
 
* [[Healing]] effects by [[nurse]]s
 
* [[Drowning]] effects
 
* [[Intelligence drain]] effects by [[mind flayer]]
 
* [[Disease]] effect by [[Juiblex]]
 
* [[Seduction]] effects
 
* [[Hallucination]] effects
 
* [[Amulet stealing]] effects by the [[Wizard of Yendor]]
 
* [[Intrinsic-stealing]] effects by [[gremlin]]s
 
* Random [[clerical spell]] effects, [[magic spell]] effects or [[breath weapon]] effects
 
* Special damage effects of the [[Riders]]
 
  
==Common misconceptions==
+
== History ==
* Magic cancellation does ''not'' protect against paralyzing [[passive attacks]] nor [[gaze attack]]s, which include the attacks of [[floating eye]]s and [[Medusa]].
+
Before version 3.6.0, magic cancellation was more readily available and stronger, and intrinsic or extrinsic protection had no effect on it. For more details on magic cancellation as it functioned in 3.4.3, see [[Magic cancellation (3.4.3)]].
* Magic cancellation ''partially'' protects against [[disenchanter]]s; it prevents the [[disenchantment]] though the claws, but not through the disenchanters passive attack.
 
* Magic cancellation does ''not'' protect against the [[cockatrice#Hissing attack|hissing attack]] of the [[cockatrice]].
 
  
 
==References==
 
==References==
 +
<references />
 
* [[Source:Mhitu.c]]
 
* [[Source:Mhitu.c]]
 
* [[Source:Monattk.h]]
 
* [[Source:Monattk.h]]
 +
* [[Source:Monst.c]]
 +
* [[Source:Mthrowu.c]]
  
<includeonly><div style="display: none block !important; position: absolute; z-index: 100; top: 10px; right: {{#expr:{{{offset|0}}}*40+10}}px">
+
==External links==
<div style="position: relative; width: 32px; height: 32px; overflow: hidden">
+
* [http://www.spod-central.org/~psmith/nh/armr-343.txt armr-343.txt]
<div style="position: absolute; top: 0px; left: 0px; font-size: 100px; overflow: hidden; line-height: 100px; z-index: 3">[[Wikihack:Next version|<span title="This article may require revision for the next version of NetHack. Click here for more information.">&nbsp;&nbsp;&nbsp;</span>]]</div>
+
* [http://alt.org/nethack/topdeaths.html NAO top types of death]
<div style="position: absolute; top: 0px; left: 0px; z-index: 2">[[Image:nh343-icon.png|32px|This article may require revision for the next version of NetHack. Click here for more information.]]</div>
+
{{nethack-360|offset=1}}
</div>
+
{{featured}}
</div>
 
</includeonly>
 
<noinclude>
 
This template places a small icon in the top right corner of an article to indicate that contains information about [[NetHack 3.4.3]], and may require revision for future versions of NetHack.  See [[WikiHack:Next version]] for more information.  This template should be placed at the bottom of the article.
 
 
 
If this is one of multiple templates on a single page, specify an offset like this:
 
<nowiki>{{slashem-7E7}}</nowiki>
 
<nowiki>{{nethack-343|offset=1}}</nowiki>
 
so that the tags do not appear on top of each other.
 
 
 
The code behind this template was taken from http://en.wikipedia.org/wiki/Template:Featured_article. It has been modified slightly to work with Wikihack.
 
 
 
[[Category:Templates]]
 
</noinclude>
 
 
[[Category:Armor]]
 
[[Category:Armor]]

Latest revision as of 01:40, 24 March 2024

For the effects of a wand of cancellation or a spell of cancellation, see cancellation.

Magic cancellation, or MC for short, is a graduated property in NetHack which protects the player character from certain non-damaging effects caused by a monster using a contact-making attack.

Description

Magic cancellation offers a certain amount of protection against "special melee attacks" made against a character - examples include poison from killer bee stings, lycanthropy caused by werejackal bites, and the green slime's sliming attacks. Having the highest (best) grade of magic cancellation means that only 110 of special melee attacks will succeed (assuming they would hit otherwise). This makes magic cancellation a high priority trait. A precise list of the special melee attacks that magic cancellation protects against is provided in the section below.

Magic cancellation must not be confused with cancellation caused by a wand or spell, nor with magic resistance. See § Differences from cancellation and magic resistance for further details.

Your current level of magic cancellation can be verified via any source of enlightenment; "You are warded" means you have MC1, "You are guarded" is MC2, and "You are protected" is MC3.

Sources

The most common source of magic cancellation is armor. Each piece of armor has a magic cancellation number (MC number) ranging from 0 (worst) to 3 (best). Note that magic cancellation from armor is not cumulative—the player's magic cancellation is the maximum of that provided by any single piece of armor worn. This means that if you are wearing a chain mail with MC 1, and a dwarvish cloak with MC 1, then your magic cancellation is still 1.

Magic cancellation can also be granted by protection, either intrinsic or extrinsic. Extrinsic protection augments your magic cancellation by 1, to a maximum of 3. Intrinsic protection or temporary protection from the spell of protection counts as magic cancellation 1, but doesn't stack with armor sources or extrinsic protection. The sources of extrinsic protection are the ring of protection, the Tsurugi of Muramasa, and the Mitre of Holiness; more than one such source provides no additional benefit. Intrinsic protection is granted when you get an AC bonus by donating to an aligned priest or by a favor when praying. Intrinsic protection may be lost by a gremlin's special attack or eating a disenchanter corpse; if so, donating the appropriate amount to an aligned priest will restore it, even if it would fail to improve your AC. High priests have extrinsic protection, and aligned priests and monsters represented by A have intrinsic protection.

The following list contains all the sources of magic cancellation:

Armor Armor type MC
Extrinsic protection N/A +1 (max 3)
Intrinsic protection 1 (if no extrinsic)
spell of protection
alchemy smock cloak 1
cloak of displacement
cloak of invisibility
cloak of magic resistance
dwarvish cloak
elven cloak
leather cloak
mummy wrapping
orcish cloak
banded mail body armor
bronze plate mail
chain mail
leather armor
orcish chain mail
orcish ring mail
ring mail
scale mail
splint mail
studded leather armor
cornuthaum helm
oilskin cloak cloak 2
robe
crystal plate mail body armor
dwarvish mithril-coat
elven mithril-coat
plate mail
cloak of protection cloak 3

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

A worn amulet of guarding adds +2 to magic cancellation.

Mechanics

Magic cancellation protects the player by reducing the probability of special melee attacks occurring.

MC Effect probability
0 100%
1 70%
2 40%
3 10%

If all these tests are passed, the player will suffer the special effect. In the case of fire, cold, and shock, there is further a test for determining if any inventory items are damaged or destroyed.

Cancelable effects

Understanding how magic cancellation works requires some understanding of how an attack works in NetHack. An attack has two characteristics: attack type (e.g. bites and stings) and damage type (e.g. physical or poisonous). A soldier ant, for instance, has two attacks: a bite which does 2d4 physical damage (i.e. ordinary damage), and a sting which does 3d4 poison damage. Magic cancellation will not protect against the 2d4 physical damage from the bite, nor will it prevent the 3d4 damage caused by the sting. It will, however, protect against the special effects from the poisonous sting, which randomly include hitpoint reduction, attribute reduction, and instadeath.

There is no obvious pattern to what magic cancellation does and doesn't protect against. Shortly put, magic cancellation protects against certain attack types that deal a certain type of damage. This relation is shown in the table below. To be prevented by magic cancellation, both the attack type and damage type must be in the orange area of the table. If either the attack type or damage type is outside the orange area, magic cancellation will have no effect on the attack.

In earlier versions of the game, the idea was that some types of armor covered your entire body surface, so the attacker effectively could not touch you despite his successful attack. Over time, with the addition of the cornuthaum and many types of special attacks, this point has become moot, and the current explanation can only be "it's magic".

Attack type Damage type
Attack type unaffected Attack type prevented Damage type prevented Damage type unaffected
Examples – unaffected due to attack type Examples – prevented due to combination of attack type and damage type Examples – unaffected due to damage type
  1. 1.0 1.1 Magic cancellation protects against special melee weapon attacks, such as level drain from a barrow wights weapon, but it does not protect against weapons that are thrown or launched, such as poisoned arrows and darts.
  2. 2.0 2.1 2.2 2.3 The type of damage done by every single kick, headbutt, tentacle attack, and grabbing attacks in the game are listed in the rightmost column "Damage type unaffected". And hence they all bypass magic cancellation.
  3. Disenchantment by the disenchanter claw is prevented, but magic cancellation does not however protect against the passive disenchanting attack, since passive attacks are listed in the leftmost column "Attack type unaffected".

Differences from cancellation and magic resistance

Main articles: Cancellation and Magic resistance

Magic cancellation is distinct from cancellation, which a monster suffers when hit by a wand or spell of cancellation. Cancelling a monster completely removes the monster's ability to perform its special melee attacks, while magic cancellation only reduces the probability of those attacks succeeding against the player. Also, the attacks affected by cancelling a monster are not exactly the same as those prevented through magic cancellation. See the article on cancellation to compare effects.

Magic cancellation is not the same as magic resistance. Magic resistance is an extrinsic that protects against spell, wand, and trap effects and damage.

Magic cancellation is also different from intrinsic resistances against fire, cold, and shock damage. If you suffer fire damage while fire resistant, you won't be dealt hit point damage, but there is still a chance of items such as scrolls, spellbooks, and potions being destroyed. Magic cancellation on the other hand won't prevent the damage, but it will reduce the probability of item-destroying effects occurring.

Noteworthy interactions

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

Pets can gain intrinsics from eating, though MC is still good for preventing effects that can't be intrinsically resisted.

Strategy

Magic cancellation is a useful properly which gets more useful the more of it you have; a character with MC3 will suffer only 14 as many cancellable attacks as one with MC2. However, its value must be weighed against its opportunity costs. Acquiring MC3 requires a cloak of protection, or one of the MC2 cloaks or suits and a source of extrinsic protection. Armor which provides MC2 or 3 doesn't provide the useful properties of the MC1 magic cloaks or MC0 dragon scale mail. In many cases, it's better to wear the cloak of magic resistance to protect yourself from polymorph traps and death magic, or silver dragon scale mail to protect your wands and rings from lightning. Most cancellable attacks have either resistances to negate them, or countermeasures to reverse their effects (fire for sliming, holy water for lycanthropy, Elbereth to unstick from mimics), so a well-prepared player may find magic cancellation a lower priority than more critical properties.

Magic cancellation only protects from melee attacks, and characters with strong ranged attacks can generally kill the attackers from a distance before they become a threat. Beware of monsters (especially nasties) being summoned to you, though.

If you want MC3, you may want to treat the ring of protection as a situational item, which you equip when a relevant monster appears and then swap out for a more generally useful one when the situation is dealt with. Priests and Samurai get protection from their quest artifacts; other roles must be lawful (at least temporarily) to wish for them.

History

Before version 3.6.0, magic cancellation was more readily available and stronger, and intrinsic or extrinsic protection had no effect on it. For more details on magic cancellation as it functioned in 3.4.3, see Magic cancellation (3.4.3).

References

External links

This page may need to be updated for the current version of NetHack.

It may contain text specific to NetHack 3.6.0. Information on this page may be out of date.

Editors: After reviewing this page and making necessary edits, please change the {{nethack-360}} tag to the current version's tag or {{noversion}} as appropriate.