Difference between revisions of "Monster spell"

From NetHackWiki
Jump to navigation Jump to search
m (Ray-type spells: upcoming + word choice)
m (EvilHack: pothole)
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
In ''[[NetHack]]'', a '''monster spell''' is a category of [[spell]] that only spell-casting [[monster]]s can make use of. Some are unique to this category, while others share properties with other magical items and spells that the [[player]] character can use.
+
In ''[[NetHack]]'', a '''monster spell''' is a category of [[spell]] that spell-casting [[monster]]s can make use of. Some are unique to this category, while others share properties with other magical items and spells that the [[player]] character can use.
  
 
==Description==
 
==Description==
 
Hostile monsters that have spell-casting attacks can cast one of three categories of spell: [[#Mage spells|mage spells]], [[#Clerical spells|clerical spells]] and [[#Ray-type spells|ray-type spells]].{{refsrc|src/mcastu.c|9|version=NetHack 3.6.7|name="magespells"|comment=list of mage spells}}{{refsrc|src/mcastu.c|25|version=NetHack 3.6.7|name="clericspells"|comment=list of clerical spells}} No monster will cast spells in more than one category. Ray spells are handled differently compared to mage and clerical spells - see the section below for more information.<ref name="rayspell"/> Monsters that are [[cancelled]] can no longer cast any spells.{{refsrc|src/mcastu.c|233|version=NetHack 3.6.7}}
 
Hostile monsters that have spell-casting attacks can cast one of three categories of spell: [[#Mage spells|mage spells]], [[#Clerical spells|clerical spells]] and [[#Ray-type spells|ray-type spells]].{{refsrc|src/mcastu.c|9|version=NetHack 3.6.7|name="magespells"|comment=list of mage spells}}{{refsrc|src/mcastu.c|25|version=NetHack 3.6.7|name="clericspells"|comment=list of clerical spells}} No monster will cast spells in more than one category. Ray spells are handled differently compared to mage and clerical spells - see the section below for more information.<ref name="rayspell"/> Monsters that are [[cancelled]] can no longer cast any spells.{{refsrc|src/mcastu.c|233|version=NetHack 3.6.7}}
  
For non-ray spells, the monster must be at least [[Monster level|level]] one to cast spells, and spells are selected randomly based on that monster's level (represented in calculations as ''ML'') and spellcasting type, with their level providing the cap for what spells of that type are eligible.{{refsrc|src/mcastu.c|87|version=NetHack 3.6.7|name="magelist"|comment=cases for randomly selected mage spells}}{{refsrc|src/mcastu.c|142|version=NetHack 3.6.7|name="clericlist"|comment=cases for randomly selected cleric spells}} Monsters that cast spells from a given category can use any spell in that category if it is available at or below their current level, and will only cast a particular spell once every (10 &minus; ''ML'') turns, with a minimum "cooldown" of two turns between attempts.{{refsrc|src/mcastu.c|239|version=NetHack 3.6.7}} Monsters that attempt to cast a spell while it is on cooldown will produce a "curse" message.{{refsrc|src/mcastu.c|53|version=NetHack 3.6.7}} Once the conditions for being able to cast a given spell, there is a {{frac|2|ML}} chance that the spell will fail and produce a different non-"curse" message, with the chance of failure multiplied by 5 if that monster is [[confused]].{{refsrc|src/mcastu.c|257|version=NetHack 3.6.7}}
+
For non-ray spells, the monster must be at least [[Monster level|level]] one to cast spells, and spells are selected randomly based on that monster's level (represented in calculations as ''ML'') and spellcasting type, with their level providing the cap for what spells of that type are eligible.{{refsrc|src/mcastu.c|87|version=NetHack 3.6.7|name="magelist"|comment=cases for randomly selected mage spells}}{{refsrc|src/mcastu.c|142|version=NetHack 3.6.7|name="clericlist"|comment=cases for randomly selected cleric spells}} Monsters that cast spells from a given category can use any spell in that category if it is available at or below their current level, and will only cast a particular spell once every (10 &minus; ''ML'') turns, with a minimum "cooldown" of two turns between attempts.{{refsrc|src/mcastu.c|239|version=NetHack 3.6.7}} Monsters that attempt to cast a spell while it is on cooldown will produce a "curse" message.{{refsrc|src/mcastu.c|53|version=NetHack 3.6.7}}
  
Hostile monsters that are scared (e.g., by [[Elbereth]]) or are not adjacent to you will only use non-directed spells.<ref name="rayspell"/> If a hostile monster uses a directed spell at you, but you are on a different square than the monster expected, the spell will fail and produce a "curse" message. Monsters will not cast spells of either type if they are more than 7 [[square]]s away from you.{{refsrc|src/monmove.c|586|nethack=3.6.7}} Peaceful or tame monsters will not cast directed spells at you unless under the effects of [[conflict]].
+
Once the conditions for being able to cast a given spell, there is a {{frac|2|ML}} chance that the spell will fail and produce a different non-"curse" message, with the chance of failure multiplied by 5 if that monster is [[confused]].{{refsrc|src/mcastu.c|257|version=NetHack 3.6.7}} Otherwise, the spell is cast and its effects are applied: damaging spells will deal ({{frac|''ML''|2}} + 1)d6 of damage, while damaging spells from an attack that has dice specified in the routine will deal ({{frac|''ML''|2}} + x)dy damage, where (x, y) is the amount and size of the damage dice{{refsrc|src/mcastu.c|288|nethack=3.6.7|name=damnd|comment=calculations for monster spells cast with damage dice}}{{refsrc|src/mcastu.c|290|nethack=3.6.7|name=damxx|comment=calculations for monsters spells cast without dice}} - for example, a level 14 [[Angel]] using the magic missile spell at melee range (<code>ATTK(AT_MAGC, AD_MAGM, 2, 6)</code>) will deal ({{frac|14|2}} + 2)d6 in damage, or 9d6.{{refsrc|src/monst.c|1010|nethack=3.6.7|name="angl"}} Monster spell damage is always halved by the [[half spell damage]] property if you possess it.{{refsrc|src/mcastu.c|292|nethack=3.6.7|comments=half-spell applies to all monster spells that do not calculate their own damage}}
 +
 
 +
Hostile monsters that are scared (e.g. by [[Elbereth]]) or are not adjacent to you will only use non-directed spells.<ref name="rayspell"/> If a hostile monster uses a directed spell at you, but you are on a different square than the monster expected, the spell will fail and produce a "curse" message. Monsters will not cast spells of either type if they are more than 7 [[square]]s away from you.{{refsrc|src/monmove.c|586|nethack=3.6.7}} Peaceful or tame monsters will not cast directed spells at you unless under the effects of [[conflict]].
  
 
==List of spells==
 
==List of spells==
In the tables below, ''Min. level'' refers to the minimum level required for the monster to be able to cast that spell. The monsters that use the type of spells in each table are listed in the two ''Monsters'' column. In the ''Monsters (at lowest level)'' column, we assume that the monster is generated at its base level minus one, which is the lowest possible level at which a monster will be randomly generated. In the ''Monsters (at highest level)'' column, we assume that the monster is generated at its base level times 1.5, which is the highest possible level at which a monster will be randomly generated. In both cases, each named monster can cast the spell on that row and every spell above it.
+
In the tables below, ''Min. level'' refers to the minimum level required for the monster to be able to cast that spell. The monsters that use the type of spells in each table are listed in the two ''Monsters'' column. In the ''Monsters (at lowest level)'' column, we assume that the monster is generated at its base level minus one, which is the lowest possible level at which a monster will be randomly generated. In the ''Monsters (at highest level)'' column, we assume that the monster is generated at its base level times 1.5, which is the highest possible level at which a monster will be randomly generated. In both cases, each named monster can cast the spell on the same row as their name and every spell above it.
  
As an example, a golden naga is guaranteed to cast psi bolt, cure self, haste self, stun, disappear, drain strength and destroy armor. It may be able to cast curse items and aggravate, if it is generated at a high enough level. Monsters are capable of casting spells that appear below their names in the table if they gain levels, e.g. through killing other monsters (typically via conflict) or potions of {{! of|gain level}}.
+
As an example, a golden naga is guaranteed to cast psi bolt, cure self, haste self, stun, disappear, drain strength and destroy armor. They may be able to cast curse items and aggravate, if they are generated at a high enough level. Monsters at their maximum level can still gain the ability to cast other spells below their names in the table if they gain levels through other means, e.g. potions of {{! of|gain level}}.
  
 
===Mage spells===
 
===Mage spells===
Line 76: Line 78:
  
 
===Ray-type spells===
 
===Ray-type spells===
Ray-type spells are non-directed and can be cast by monsters with the corresponding attack type and can be used at melee-range, or from a distance if the caster is lined up with its perceived target.{{refsrc|src/mcastu.c|841|version=NetHack 3.6.7|name="rayspell"|comment=buzzmu() handles ray-type spells, and is called if monster is at range}} At a distance, the spell behaves the same as a [[wand]] or [[breath weapon]]; when cast at an adjacent square, they act as melee attacks that deal damage based on the caster's level and cannot be blocked by [[reflection]].{{refsrc|src/mcastu.c|288|version=NetHack 3.6.7}} Each of the ray spells can be nullified with the appropriate resistance property, and [[half spell damage]] applies. Ray spells that are cast unsuccessfully do not produce "curse" messages.
+
Ray-type spells are non-directed and can be cast by monsters with the corresponding attack type and can be used at melee-range, or from a distance if the caster is lined up with its perceived target.{{refsrc|src/mcastu.c|841|version=NetHack 3.6.7|name="rayspell"|comment=buzzmu() handles ray-type spells, and is called if monster is at range}} At a distance, the spell behaves the same as a [[wand]] or [[breath weapon]]; when cast at an adjacent square, they act as melee attacks that deal damage based on the caster's level like other spells, and cannot be blocked by [[reflection]].<ref name="damnd"/> Each of the ray spells can be nullified with the appropriate resistance property, and [[half spell damage]] applies. Ray spells that are cast unsuccessfully do not produce "curse" messages.
  
 
The ray-type spells are as follows:
 
The ray-type spells are as follows:
* [[Magic missile]]: This is used by [[Angel]]s, [[Yeenoghu]] and the [[Oracle]] - the Oracle only uses the melee-range version as a passive in response to a melee attack from your character. When used in melee range, it deals ({{frac|''ML''|2}} + 1)d6 damage, e.g. an Angel at its base level will deal 8d6 damage. [[Magic resistance]] completely blocks the attack in either form.{{refsrc|src/mcastu.c|315|version=NetHack 3.6.7}}
+
* [[Fireball]]: This attack is present in the code, but is currently unused by any monsters. It appears as a fireball ray when used at a distance, and leaves you "enveloped in flames" at melee range. [[Fire resistance]] blocks the spell in either form.{{refsrc|src/mcastu.c|298|version=NetHack 3.6.7}}
* [[Cone of cold]]: This is used by [[Asmodeus]]. When used at a distance, the attack deals 6d6 damage; when used in melee range, the spell can deal upwards of 180 damage before half spell damage is applied. [[Cold resistance]] blocks the spell completely in either form.{{refsrc|src/mcastu.c|289|version=NetHack 3.6.7}}
+
* [[Cone of cold]]: This is used by [[Asmodeus]].{{refsrc|src/monst.c|2546|nethack=3.6.7}} It appears as a frost ray when used at a distance, and leaves you "covered in frost" if used at melee range. [[Cold resistance]] blocks the spell completely in either form.{{refsrc|src/mcastu.c|307|version=NetHack 3.6.7}}
* [[Fireball]]: This attack is present in the code, but currently unused by any monsters, and functions as the cone of cold does above. [[Fire resistance]] blocks the spell in either form.{{refsrc|src/mcastu.c|307|version=NetHack 3.6.7}}
+
* [[Magic missile]]: This is used by [[Angel]]s, [[Yeenoghu]] and the [[Oracle]]<ref name="angl"/>{{refsrc|src/monst.c|2212|nethack=3.6.7}}{{refsrc|src/monst.c|2497|nethack=3.6.7}} - the Oracle only uses the melee-range version as a passive in response to a melee attack from your character. When used at a distance, it appears as a magic missile [[ray]], and when used in melee range, it appears as a "shower of missiles". [[Magic resistance]] completely blocks the attack in either form.{{refsrc|src/mcastu.c|315|version=NetHack 3.6.7}}
  
 
{{upcoming|3.7.0|Per {{commit|6b8079a16f425aa80239b0b1009ec98a70af56ff}}, each of the ray spells have secondary effects:
 
{{upcoming|3.7.0|Per {{commit|6b8079a16f425aa80239b0b1009ec98a70af56ff}}, each of the ray spells have secondary effects:
Line 118: Line 120:
 
===GruntHack===
 
===GruntHack===
 
In [[GruntHack]], [[Mage (GruntHack)|mages]] and other similar casters have the ability to cast the same spells available to the player, with their spell repertoire dependent on their level. This turns weaker hostile casters such as gnomish mages (which replace gnomish wizards) from virtual pushovers to fairly dangerous threats, and stronger casters such as [[Lich (monster class)|liches]] and [[Vampire mage (GruntHack)|vampire mages]] become even more powerful threats that can deal significant damage with the [[spell of acid blast]] or even zap the [[spell of cancellation]] at you.
 
In [[GruntHack]], [[Mage (GruntHack)|mages]] and other similar casters have the ability to cast the same spells available to the player, with their spell repertoire dependent on their level. This turns weaker hostile casters such as gnomish mages (which replace gnomish wizards) from virtual pushovers to fairly dangerous threats, and stronger casters such as [[Lich (monster class)|liches]] and [[Vampire mage (GruntHack)|vampire mages]] become even more powerful threats that can deal significant damage with the [[spell of acid blast]] or even zap the [[spell of cancellation]] at you.
 +
 +
===SporkHack===
 +
In [[SporkHack]], some new monster spells are added:
 +
 +
* Mage spells
 +
** [[fire bolt]]
 +
** [[ice bolt]]
 +
** [[enrage]]
 +
** [[Flight (monster spell)|flight]]
 +
* Clerical spells
 +
** [[summon minion]]
 +
** [[Flight (monster spell)|flight]]
 +
** [[Vulnerability (monster spell)|vulnerability]]
 +
 +
Some existing spells also have changes made:
 +
 +
* The touch of death deals 8d6 damage against a target and drains maximum HP; [[magic resistance]] and/or [[half spell damage]] can reduce the HP and max HP damage.
 +
* The destroy armor spell [[erode]]s a target piece of armor, removing erosion-proofing if necessary even from inherently proofed materials such as [[silver]]. One to three levels of erosion can occur per casting, with magic resistance lowering the armor damage to one level per casting - an item eroded by any means while already at maximum erosion is destroyed instead.
  
 
===dNetHack===
 
===dNetHack===
 
{{main|dNetHack monster spells}}
 
{{main|dNetHack monster spells}}
 
In [[dNetHack]], monster spellcasting is divided into three broad categories: magical casting, divine casting, and psionic casting. In addition to basic spell lists, many spellcasting monsters also have specific lists of spells that they can cast with varying probabilities - these lists are consistent for a given monster type, and vary between monster types; monster spell type is a factor for interactions with various items and [[madness]]es. Most regular spellcasting monsters have a cooldown on their ability to cast spells frequently, while much stronger casters (including most [[unique]] spellcasters) are able to cast without any cooldown. A list of monster spells and the monsters that can cast them is available in the linked article above.
 
In [[dNetHack]], monster spellcasting is divided into three broad categories: magical casting, divine casting, and psionic casting. In addition to basic spell lists, many spellcasting monsters also have specific lists of spells that they can cast with varying probabilities - these lists are consistent for a given monster type, and vary between monster types; monster spell type is a factor for interactions with various items and [[madness]]es. Most regular spellcasting monsters have a cooldown on their ability to cast spells frequently, while much stronger casters (including most [[unique]] spellcasters) are able to cast without any cooldown. A list of monster spells and the monsters that can cast them is available in the linked article above.
 +
 +
Most directed monster spells can be cast against targets at a distance compared to ''NetHack'', where they can only be cast against adjacent targets.
  
 
===FIQHack===
 
===FIQHack===
In [[FIQHack]], monsters use the same spellcasting system as the player, and can also read [[spellbooks]] to acquire new spells. This makes higher-level spellcasting monsters much more dangerous. Low-level spellcasting monsters (kobold shamans, orc shamans and gnomish wizards) no longer approach you due to lacking melee ability, and will instead attempt to line up with you in order to cast spells.
+
In [[FIQHack]], monsters use the same spellcasting system as the player, and can also read [[spellbooks]] to acquire new spells. This makes higher-level spellcasting monsters much more dangerous. Low-level spellcasting monsters (e.g., kobold shamans, orc shamans, gnomish wizards) no longer approach you due to lacking melee ability, and will instead attempt to line up with you in order to cast spells.
  
 
===EvilHack===
 
===EvilHack===
In [[EvilHack]], many new monster spells are added:  
+
In [[EvilHack]], many new monster spells are added, including several from SporkHack:
  
 
* Mage spells
 
* Mage spells
Line 136: Line 158:
 
** [[Protection (monster spell)|protection]]
 
** [[Protection (monster spell)|protection]]
 
** [[Reflection (monster spell)|reflection]]
 
** [[Reflection (monster spell)|reflection]]
** [[Stone to flesh (monster spell)|stone to flesh]]
 
 
* Clerical spells
 
* Clerical spells
 +
** [[Call undead (EvilHack)|call undead]]
 
** [[summon minion]]
 
** [[summon minion]]
 
** [[Vulnerability (monster spell)|vulnerability]]
 
** [[Vulnerability (monster spell)|vulnerability]]
 +
* Other spells
 +
** [[Stone to flesh (monster spell)|stone to flesh]]
  
 
Some existing spells also have changes made:
 
Some existing spells also have changes made:
  
 
* The cure self spell is not directly altered, but the spell is made a priority if the spellcasting monster's hit points drop to a life-threatening level.
 
* The cure self spell is not directly altered, but the spell is made a priority if the spellcasting monster's hit points drop to a life-threatening level.
* The touch of death deals 8d6 damage against a target with [[magic resistance]] and drains maximum HP, and [[half spell damage]] can reduce HP and max HP damage.
+
* Similar to SporkHack, the touch of death deals 8d6 damage against a target with magic resistance and drains maximum HP, and both types of HP loss can be reduced with half spell damage - if the target lacks magic resistance and is also not [[Death resistance|immune to death magic]], they are instantly killed.
* The destroy armor spell [[erode]]s a target piece of armor, destroying it upon inflicting enough erosion, and can also remove erosion-proofing even from inherently proofed materials such as [[dragonhide]] and [[mithril]]. One to three levels of erosion can occur per casting, with magic resistance lowering the armor damage to one level per casting. Blessed armor has a small chance of resisting, while [[crystal plate mail]], [[quest artifact]] armor and [[The Hand of Vecna]] are immune.
+
* As in SporkHack, the destroy armor spell erodes a target piece of armor, destroying it upon inflicting enough erosion - it can also remove erosion-proofing from inherently proofed materials such as [[dragonhide]] and [[mithril]]. One to three levels of erosion can occur per casting, with magic resistance lowering the armor damage to one level per casting. Blessed armor has a small chance of resisting, while [[crystal plate mail]], [[quest artifact]] armor and [[The Hand of Vecna (EvilHack)|The Hand of Vecna]] are immune.
* The geyser spell can rust any unprotected worn armor, and certain monsters will cast a variation that deals cold damage and affects inventory.
+
* The geyser spell can rust any unprotected worn armor, and certain monsters will cast an "avalanche" variation that deals cold damage and affects inventory.
* The summon insects spell will create hostile [[arachnid or centipede]] monsters instead of insects if cast by [[Lolth]] or a [[Drow (monster attribute)|drow]] monster.
+
* The summon insects spell will create hostile [[arachnid or centipede]] monsters instead of insects if cast by [[Lolth (EvilHack)|Lolth]] or a [[Drow (monster attribute)|drow]] monster.
 
 
Several new spellcasting monsters are added, and some existing spellcasters also have their attack routines adjusted to make them stronger.
 
  
Monsters can use their spells in combat against other monsters, but tame and peaceful monsters will not cast any spell that summons or aggravates monsters. Polymorphing into a spellcasting monster and attacking in melee will cast a random monster spell, with the same attack order as that monster would have normally; the spellcasting attack fails if you do not have enough power.
+
Several new spellcasting monsters are added, and some existing spellcasters also have their attack routines adjusted to make them stronger; the fireball spell is also given to a few monsters, all of them [[major demon]]s. Monsters can use their spells in combat against other monsters, but tame and peaceful monsters will not cast any spell that summons or aggravates monsters. Polymorphing into a spellcasting monster and attacking in melee will cast a random monster spell, with the same attack order as that monster would have normally; the spellcasting fails if you do not have enough power for the selected spell.
  
 
==See also==
 
==See also==

Revision as of 13:48, 18 April 2024

In NetHack, a monster spell is a category of spell that spell-casting monsters can make use of. Some are unique to this category, while others share properties with other magical items and spells that the player character can use.

Description

Hostile monsters that have spell-casting attacks can cast one of three categories of spell: mage spells, clerical spells and ray-type spells.[1][2] No monster will cast spells in more than one category. Ray spells are handled differently compared to mage and clerical spells - see the section below for more information.[3] Monsters that are cancelled can no longer cast any spells.[4]

For non-ray spells, the monster must be at least level one to cast spells, and spells are selected randomly based on that monster's level (represented in calculations as ML) and spellcasting type, with their level providing the cap for what spells of that type are eligible.[5][6] Monsters that cast spells from a given category can use any spell in that category if it is available at or below their current level, and will only cast a particular spell once every (10 − ML) turns, with a minimum "cooldown" of two turns between attempts.[7] Monsters that attempt to cast a spell while it is on cooldown will produce a "curse" message.[8]

Once the conditions for being able to cast a given spell, there is a 2ML chance that the spell will fail and produce a different non-"curse" message, with the chance of failure multiplied by 5 if that monster is confused.[9] Otherwise, the spell is cast and its effects are applied: damaging spells will deal (ML2 + 1)d6 of damage, while damaging spells from an attack that has dice specified in the routine will deal (ML2 + x)dy damage, where (x, y) is the amount and size of the damage dice[10][11] - for example, a level 14 Angel using the magic missile spell at melee range (ATTK(AT_MAGC, AD_MAGM, 2, 6)) will deal (142 + 2)d6 in damage, or 9d6.[12] Monster spell damage is always halved by the half spell damage property if you possess it.[13]

Hostile monsters that are scared (e.g. by Elbereth) or are not adjacent to you will only use non-directed spells.[3] If a hostile monster uses a directed spell at you, but you are on a different square than the monster expected, the spell will fail and produce a "curse" message. Monsters will not cast spells of either type if they are more than 7 squares away from you.[14] Peaceful or tame monsters will not cast directed spells at you unless under the effects of conflict.

List of spells

In the tables below, Min. level refers to the minimum level required for the monster to be able to cast that spell. The monsters that use the type of spells in each table are listed in the two Monsters column. In the Monsters (at lowest level) column, we assume that the monster is generated at its base level minus one, which is the lowest possible level at which a monster will be randomly generated. In the Monsters (at highest level) column, we assume that the monster is generated at its base level times 1.5, which is the highest possible level at which a monster will be randomly generated. In both cases, each named monster can cast the spell on the same row as their name and every spell above it.

As an example, a golden naga is guaranteed to cast psi bolt, cure self, haste self, stun, disappear, drain strength and destroy armor. They may be able to cast curse items and aggravate, if they are generated at a high enough level. Monsters at their maximum level can still gain the ability to cast other spells below their names in the table if they gain levels through other means, e.g. potions of gain level.

Mage spells

The list of available mage spells is as follows:[1]

Spell Min. level Directed Monsters (at lowest level) Monsters (at highest level)
Psi bolt 1 Y kobold shaman
Cure self 2 barrow wight, orc shaman, gnomish wizard
Haste self 3 kobold shaman
Stun 4 Y guide, apprentice barrow wight, orc shaman, gnomish wizard
Disappear 5
Drain strength 7 Y guide, apprentice
Destroy armor 9 Y golden naga, lich, nalfeshnee
Curse items 11 Y demilich
Aggravate 14 ki-rin, titan, Ixoth, Dark One, Minion of Huhetotl, Thoth Amon, Chromatic Dragon, Nalzok golden naga
Summon nasties 16 master lich, Archon, Neferet the Green lich, nalfeshnee
Touch of death 21 Y arch-lich, Orcus, Dispater, Demogorgon demilich, master lich, arch-lich, ki-rin, titan, Archon, Ixoth, Dark One, Minion of Huhetotl, Thoth Amon, Chromatic Dragon, Nalzok, Neferet the Green, Orcus, Dispater, Demogorgon
Double Trouble 19/unique Wizard of Yendor Wizard of Yendor

Peaceful or tame monsters that cast mage spells will only use haste self, cure self and disappear, and will only cast the lattermost spell if you can currently see invisible.

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 part of a rework to make them better emulate their inspirations in the Furies, commit f930a12f gives erinyes the ability to cast mage monster spells among the traits and properties they can gain if a character commits enough alignment abuse.

Clerical spells

The list of available clerical spells is as follows:[2]

Spell Min. level Directed Monsters (at lowest level) Monsters (at highest level)
Open wounds 1 Y
Cure self 2
Confuse 3 Y abbot, acolyte
Paralyze 5 Y
Blind 6 Y abbot, acolyte
Summon insects 9
Curse items 10 Y aligned priest
Lightning 12 Y
Fire pillar 13 Y
Geyser 14 Y high priest, Grand Master, Master Kaen, Arch Priest aligned priest, high priest, Grand Master, Master Kaen, Arch Priest

Peaceful or tame monsters that cast clerical spells will only use cure self.

Ray-type spells

Ray-type spells are non-directed and can be cast by monsters with the corresponding attack type and can be used at melee-range, or from a distance if the caster is lined up with its perceived target.[3] At a distance, the spell behaves the same as a wand or breath weapon; when cast at an adjacent square, they act as melee attacks that deal damage based on the caster's level like other spells, and cannot be blocked by reflection.[10] Each of the ray spells can be nullified with the appropriate resistance property, and half spell damage applies. Ray spells that are cast unsuccessfully do not produce "curse" messages.

The ray-type spells are as follows:

  • Fireball: This attack is present in the code, but is currently unused by any monsters. It appears as a fireball ray when used at a distance, and leaves you "enveloped in flames" at melee range. Fire resistance blocks the spell in either form.[15]
  • Cone of cold: This is used by Asmodeus.[16] It appears as a frost ray when used at a distance, and leaves you "covered in frost" if used at melee range. Cold resistance blocks the spell completely in either form.[17]
  • Magic missile: This is used by Angels, Yeenoghu and the Oracle[12][18][19] - the Oracle only uses the melee-range version as a passive in response to a melee attack from your character. When used at a distance, it appears as a magic missile ray, and when used in melee range, it appears as a "shower of missiles". Magic resistance completely blocks the attack in either form.[20]

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.

Per commit 6b8079a1, each of the ray spells have secondary effects:

  • The magic missile can scuff any engraving on a targeted square.
  • The cone of cold freezes a pool or lava square it targets.
  • The fireball burns items on the floor and melts ice at the target square.

Strategy

For non-ray spells, a monster subjected to any form of life drain can lose its ability to cast higher-level spells; however, many higher-level spellcasters are immune, and those that aren't generally have a very high MR score. Stormbringer and the Staff of Aesculapius bypass monster MR, with the caveat that it is possible to kill a non-resistant target before any effect on their spellcasting is noticeable.

Messages

<Monster> points at you, then curses.
<Monster> points all around, then curses.
The monster attempted to cast a spell before they were able to do so.
<Monster> points and curses in your general direction.
As above, but the monster cannot see you.
<Monster> points and curses at your displaced image.
As above, but you are displaced.
You hear a mumbled curse.
As above, but you cannot see the monster.
The air crackles around <monster>.
The monster cast a spell when able to do so, but the spell failed.
<Monster> casts a spell!
<Monster> casts a spell at you!
The monster successfully cast a spell.
<Monster> casts a spell at a spot near you!
As above, but the monster cannot see you.
<Monster> casts a spell at your displaced image!
As above, but you are displaced.
You are hit by a shower of missiles!
A monster used a magic missile attack against you.
The missiles bounce off!
As above, but you have magic resistance.
You are covered in frost!
You were hit by the cold ray spell.
You are enveloped in flames!
You were hit by the fire ray spell.

Variants

SLASH'EM

SLASH'EM has many new spellcasting monsters, including fire vampires that use the previously-unimplemented fire ray spell. It also introduces two new mage spells:

GruntHack

In GruntHack, mages and other similar casters have the ability to cast the same spells available to the player, with their spell repertoire dependent on their level. This turns weaker hostile casters such as gnomish mages (which replace gnomish wizards) from virtual pushovers to fairly dangerous threats, and stronger casters such as liches and vampire mages become even more powerful threats that can deal significant damage with the spell of acid blast or even zap the spell of cancellation at you.

SporkHack

In SporkHack, some new monster spells are added:

Some existing spells also have changes made:

  • The touch of death deals 8d6 damage against a target and drains maximum HP; magic resistance and/or half spell damage can reduce the HP and max HP damage.
  • The destroy armor spell erodes a target piece of armor, removing erosion-proofing if necessary even from inherently proofed materials such as silver. One to three levels of erosion can occur per casting, with magic resistance lowering the armor damage to one level per casting - an item eroded by any means while already at maximum erosion is destroyed instead.

dNetHack

In dNetHack, monster spellcasting is divided into three broad categories: magical casting, divine casting, and psionic casting. In addition to basic spell lists, many spellcasting monsters also have specific lists of spells that they can cast with varying probabilities - these lists are consistent for a given monster type, and vary between monster types; monster spell type is a factor for interactions with various items and madnesses. Most regular spellcasting monsters have a cooldown on their ability to cast spells frequently, while much stronger casters (including most unique spellcasters) are able to cast without any cooldown. A list of monster spells and the monsters that can cast them is available in the linked article above.

Most directed monster spells can be cast against targets at a distance compared to NetHack, where they can only be cast against adjacent targets.

FIQHack

In FIQHack, monsters use the same spellcasting system as the player, and can also read spellbooks to acquire new spells. This makes higher-level spellcasting monsters much more dangerous. Low-level spellcasting monsters (e.g., kobold shamans, orc shamans, gnomish wizards) no longer approach you due to lacking melee ability, and will instead attempt to line up with you in order to cast spells.

EvilHack

In EvilHack, many new monster spells are added, including several from SporkHack:

Some existing spells also have changes made:

  • The cure self spell is not directly altered, but the spell is made a priority if the spellcasting monster's hit points drop to a life-threatening level.
  • Similar to SporkHack, the touch of death deals 8d6 damage against a target with magic resistance and drains maximum HP, and both types of HP loss can be reduced with half spell damage - if the target lacks magic resistance and is also not immune to death magic, they are instantly killed.
  • As in SporkHack, the destroy armor spell erodes a target piece of armor, destroying it upon inflicting enough erosion - it can also remove erosion-proofing from inherently proofed materials such as dragonhide and mithril. One to three levels of erosion can occur per casting, with magic resistance lowering the armor damage to one level per casting. Blessed armor has a small chance of resisting, while crystal plate mail, quest artifact armor and The Hand of Vecna are immune.
  • The geyser spell can rust any unprotected worn armor, and certain monsters will cast an "avalanche" variation that deals cold damage and affects inventory.
  • The summon insects spell will create hostile arachnid or centipede monsters instead of insects if cast by Lolth or a drow monster.

Several new spellcasting monsters are added, and some existing spellcasters also have their attack routines adjusted to make them stronger; the fireball spell is also given to a few monsters, all of them major demons. Monsters can use their spells in combat against other monsters, but tame and peaceful monsters will not cast any spell that summons or aggravates monsters. Polymorphing into a spellcasting monster and attacking in melee will cast a random monster spell, with the same attack order as that monster would have normally; the spellcasting fails if you do not have enough power for the selected spell.

See also

References