Difference between revisions of "Monster spell"

From NetHackWiki
Jump to navigation Jump to search
(Revised messages section to use {{message}} rather than a table; other minor fixes)
m (EvilHack: destroy armor detail)
 
(57 intermediate revisions by 6 users not shown)
Line 1: Line 1:
A '''monster spell''' is a category of [[spell]]s that only spell-casting [[monster]]s can make use of. Some are unique to this category, while others share properties with other magical items.
+
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.
  
Monsters can only cast spells if they are not [[cancelled]] and at least level one, and can only cast once every (10 − (monster's level)) turns to a minimum of two turns;{{refsrc|mcastu.c|214}} they will attempt to cast spells if these conditions are not met, producing a "curse" message.{{refsrc|mcastu.c|208}} Even with these conditions satisfied, there is a 2 in (monster's level) chance of the spell failing (with five times that chance if the monster is [[confusion|confused]]).{{refsrc|mcastu.c|232}}
+
==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}}
  
Monsters that are scared (e.g., by [[Elbereth]]) or are not adjacent to you{{refsrc|src/mhitu.c|772|nethack=3.6.1|comment=if monster is at range, buzzmu() is chosen which only handles ray-type spells}} will not use directed spells.  If a 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.
+
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}}
  
Monsters will never cast spells (even not directed at you) if they're more than 7 [[square]]s away from you.{{refsrc|src/monmove.c|570|nethack=3.6.1}}
+
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}}
  
==Messages==
+
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]].
{{message|<Monster> points at you, then curses.}}
 
{{message|<Monster> points all around, then curses.|The monster attempted to cast a spell before they were able to do so.}}
 
{{message|<Monster> points and curses in your general direction.|As above, but the monster cannot see you.}}
 
{{message|<Monster> points and curses at your displaced image.|As above, but you are [[displacement|displaced]].}}
 
{{message|You hear a mumbled curse.|As above, but you cannot see the monster.}}
 
{{message|The air crackles around <monster>.|The monster cast a spell when able to do so, but the spell failed.}}
 
{{message|<Monster> casts a spell!}}
 
{{message|<Monster> casts a spell at you!|The monster successfully cast a spell.}}
 
{{message|<Monster> casts a spell at a spot near you!|As above, but the monster cannot see you.}}
 
{{message|<Monster> casts a spell at your displaced image!|As above, but you are [[displacement|displaced]].}}
 
  
==Spells==
+
==List of spells==
There are three categories of spells that monsters can cast: ray-type spells, mage spells, and clerical spells. In vanilla, no creature casts spells in more than one category. 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 monster can cast the spell on the line it appears, as well as every spell above it. It is still theoretically possible for monsters to cast spells that appear below their names in the table, if they drink enough potions of gain level.
+
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.
The spell [[Double Trouble]] can only be used by the [[Wizard of Yendor]].
 
As an example, a golden naga is guaranteed to be able 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. 
 
  
Monster spellcasting abilities are dependent on their current level, not their original level, so [[drain life|draining]] a monster will remove its ability to cast higher-level spells.  However, most important spellcasters are immune to life drainage, and those that aren't generally have very high [[Monster MR|MR]], making the spell nearly useless. [[Stormbringer]] and [[the Staff of Aesculapius]] bypass monster MR, though both will kill most non-resistant monsters quickly enough that the effect on their spellcasting is not generally that noticeable.
+
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===
 +
The list of available mage spells is as follows:{{refsrc|src/mcastu.c|9|version=NetHack 3.6.7|name="magespells"|comment=list of mage spells}}
 
{|class="prettytable striped sortable"
 
{|class="prettytable striped sortable"
 
!Spell !! Min. level !! Directed !! Monsters (at lowest level) !! Monsters (at highest level)  
 
!Spell !! Min. level !! Directed !! Monsters (at lowest level) !! Monsters (at highest level)  
Line 34: Line 24:
 
|[[Cure self]] || 2 || || [[barrow wight]], [[orc shaman]], [[gnomish wizard]]  ||
 
|[[Cure self]] || 2 || || [[barrow wight]], [[orc shaman]], [[gnomish wizard]]  ||
 
|-
 
|-
|[[Haste self]] || 3 || || || [[kobold shaman]]
+
|[[Haste self]] || 3 || || || [[kobold shaman]]
 
|-
 
|-
 
|[[Stun (monster spell)|Stun]] || 4 || Y ||[[guide]], [[apprentice]]  || [[barrow wight]], [[orc shaman]], [[gnomish wizard]]
 
|[[Stun (monster spell)|Stun]] || 4 || Y ||[[guide]], [[apprentice]]  || [[barrow wight]], [[orc shaman]], [[gnomish wizard]]
Line 46: Line 36:
 
|[[Curse items]] || 11 || Y ||[[demilich]]  ||
 
|[[Curse items]] || 11 || Y ||[[demilich]]  ||
 
|-
 
|-
|[[Aggravate monster#Other forms of aggravate monster|Aggravate]] || 14 || ||[[ki-rin]], [[titan]], [[Ixoth]], [[Dark One]], [[Minion of Huhetotl]], [[Thoth Amon]], [[Chromatic Dragon]], [[Nalzok]]|| [[golden naga]]
+
|[[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]]
 
|[[Summon nasties]]|| 16 || || [[master lich]], [[Archon]], [[Neferet the Green]] || [[lich]], [[nalfeshnee]]
Line 55: Line 45:
 
|}
 
|}
  
=== Clerical spells ===
+
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]].
  
 +
{{upcoming|3.7.0|As part of a rework to make them better emulate their inspirations in the Furies, {{commit|f930a12fba63e77d63b7a266d517f7ea038cd464}} 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:{{refsrc|src/mcastu.c|25|version=NetHack 3.6.7|name="clericspells"|comment=list of clerical spells}}
 
{|class="prettytable striped sortable"
 
{|class="prettytable striped sortable"
 
!Spell !! Min. level !! Directed !! Monsters (at lowest level) !! Monsters (at highest level)
 
!Spell !! Min. level !! Directed !! Monsters (at lowest level) !! Monsters (at highest level)
Line 81: Line 75:
 
|}
 
|}
  
=== Ray-type spells ===
+
Peaceful or tame monsters that cast clerical spells will only use cure self.
  
Ray-type spells come in three varieties{{refsrc|mcastu.c|270}} (though only two are in use).  They can be cast from afar, and when used this way, act the same as [[wand]]s or [[breath weapon]]s.  When cast from an adjoining square, they act as [[melee]] attacks and cannot be [[reflection|reflected]], but the appropriate resistance will still nullify them.
+
===Ray-type spells===
* Three creatures use [[magic missile]]: [[Angel]]s, [[Yeenoghu]] and the [[Oracle]] (the Oracle's version is passive and will only occur in response to a melee attack).  [[Magic resistance]] is proof against this attack.  The message is, "You are hit by a shower of missiles!"  "The missiles bounce off!" if you have magic resistance.
+
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.
* [[Asmodeus]], and no one else, has a [[cold]] attack. "You are covered in frost" when hit by this attack.  [[Cold resistance]] nullifies it.
 
* The source code also supports a [[fire]] attack.  "You are enveloped in flames" when hit by this attack, and [[fire resistance]] nullifies it.  No monster in vanilla has this attack.
 
  
== Variants ==
+
The ray-type spells are as follows:
=== SLASH'EM ===
+
* [[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]].{{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}}
 +
* [[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}}
  
[[SLASH'EM]] has many new spellcasting monsters, including [[fire vampire]]s which use the unimplemented fire ray spell. It also introduces two new mage spells:
+
{{upcoming|3.7.0|Per {{commit|6b8079a16f425aa80239b0b1009ec98a70af56ff}}, each of the ray spells have secondary effects:
*[[Call undead]], which can be used by all [[lich]]es (and no other monsters);
 
*[[Create pool]], which can be used by monsters of level 13 or higher.
 
  
=== Slash'EM Extended ===
+
* 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.}}
  
[[Slash'EM Extended]] reduces the chances of spellcasting monsters to actually cast spells, especially if the spell summons hostile monsters. However, it also introduces an array of new clerical spells. All of these can be used by monsters of level 9 or higher unless otherwise noted.
+
==Strategy==
*[[Antimatter storm]] (monster needs to be level 14 or higher), doing erosion damage to the player's entire inventory, including unerodable items like black dragon scale mail and rustproof splint mail;
+
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 [[Monster MR|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.
*[[Petrify]] (monster needs to be level 14 or higher), causing the player character to start [[petrification|turning to stone]] (7 turns to live);
+
 
*[[Sliming]] (monster needs to be level 14 or higher), generating the "You don't feel very well" message; the player starts turning to [[slime]] (100 turns to live);
+
==Messages==
*[[Summon Elm]] (monster needs to be level 14 or higher), creating a hostile minion of a random god that will start attacking the player;
+
{{message|<Monster> points at you, then curses.}}
*[[Intrinsic loss]], which can remove a random intrinsic (similar to being hit by a [[gremlin]]);
+
{{message|<Monster> points all around, then curses.|The monster attempted to cast a spell before they were able to do so.}}
*[[Aggravate monster]] (copy of the arcane spell);
+
{{message|<Monster> points and curses in your general direction.|As above, but the monster cannot see you.}}
*[[Dark aura]], causing the area around the player to become unlit;
+
{{message|<Monster> points and curses at your displaced image.|As above, but you are [[displacement|displaced]].}}
*[[Acid trip]], making the player [[hallucination|hallucinate]] for some (more) turns;
+
{{message|You hear a mumbled curse.|As above, but you cannot see the monster.}}
*[[Create traps]], creating random traps around the player's location;
+
{{message|The air crackles around <monster>.|The monster cast a spell when able to do so, but the spell failed.}}
*[[Relocation]], [[teleport]]ing the player to a random empty location on the level, bypassing [[teleport control]] and no-teleport restrictions;
+
{{message|<Monster> casts a spell!}}
*[[Mana drain]], reducing the player's current [[Pw]] and sometimes maximum Pw as well;
+
{{message|<Monster> casts a spell at you!|The monster successfully cast a spell.}}
*[[Disengrave]], removing an active [[Elbereth]] engraving underneath the player;
+
{{message|<Monster> casts a spell at a spot near you!|As above, but the monster cannot see you.}}
*[[Disarm]], removing the player's [[weapon]] from their hands;
+
{{message|<Monster> casts a spell at your displaced image!|As above, but you are [[displacement|displaced]].}}
*[[Slow]], removing [[speed]] intrinsic and non-permanent extrinsics;
+
 
*[[Dementor force]], lowering the player's [[luck]] and [[alignment record]];
+
{{message|You are hit by a shower of missiles!|A monster used a magic missile attack against you.}}
*[[Punishment]], chaining the player to a [[heavy iron ball]] (if one already exists, it is made heavier instead);
+
{{message|The missiles bounce off!|As above, but you have magic resistance.}}
*[[Garbage spam]], surrounding the player with items, [[door]]s and [[staircase]]s that are actually [[mimic]]s;
+
{{message|You are covered in frost!|You were hit by the cold ray spell.}}
*[[Charming seduction]], summoning [[nymph]]s around the player which may immediately begin [[stealing]] items;
+
{{message|You are enveloped in flames!|You were hit by the fire ray spell.}}
*[[Piercing ceiling]], summoning [[piercer]]s around the player;
+
 
*[[Rat swarm]], summoning a bunch of [[rodent]]s;
+
==Variants==
*[[Demonic spiders]], summoning a bunch of [[spider]]s (which often start out [[concealed]] under an item);
+
===SLASH'EM===
*[[Can of worms]], summoning a bunch of [[worm]]s (may also start out concealed);
+
[[SLASH'EM]] has many new spellcasting monsters, including [[fire vampire]]s that use the previously-unimplemented fire ray spell. It also introduces two new mage spells:
*[[Flapping bats]], summoning a bunch of [[bat]]s;
+
 
*[[Hulking brutes]], summoning [[umber hulk]]s and [[shambling horror]]s (very dangerous due to their randomized attacks);
+
* [[Call undead]], which can be used only by [[Lich (monster class)|liches]]
*[[Court summoning]], summoning [[human]] enemies (ones represented by {{white|@}}), including werecreatures and player-character monsters;
+
* [[Create pool]], which can be used by monsters of level 13 or higher
*[[Golem mastery]], surrounding the player with random [[golem]]s;
+
 
*[[Deep sea trouble]], creating [[eel]]s (very dangerous if there is water on the level);
+
===GruntHack===
*[[Mystic nature]], creating arctic fern spores, killer tomatoes and other monsters represented by the % character.
+
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.
Also, the geyser spell will cause the player's inventory to become [[wet]], and on a [[lethe]] level possibly disenchant items or transform them into potions or scrolls of amnesia. There are also the following new arcane spells, which can be cast by monsters of level 9 or higher unless otherwise noted:
+
 
*[[Damage armor]], which works like destroy armor but only damages a worn armor item by one stage (can destroy the item if it was thoroughly eroded already), and fooproof armor items resist;
+
===SporkHack===
*[[Wither]], which works like damage armor but also damages and eventually destroys fooproof items as well as those outright immune to damage (dragon scale mail for example);
+
In [[SporkHack]], some new monster spells are added:
*[[Megaload]], requires the monster to be at least level 13; this spell adds a cursed [[loadstone]] to the player's inventory;
+
 
*[[Levitate]], requires the monster to be at least level 13; this spell causes the player to float in the air for a period of time, preventing them from picking up items;
+
* Mage spells
*[[Summon Ghost]], requires the monster to be at least level 19; the player is surrounded by stronger versions of regular [[player monster]]s. If there are entries in the high-score file, the names and classes of these monsters are directly taken from there; the first 1000 entries in the list are eligible for selection. If no entries exist, random player monsters with random names (taken from a preset list) are created instead.
+
** [[fire bolt]]
*[[Enrage]], requires the monster to be at least level 22; this spell heals all hostile monsters in a certain radius around the player, causes peaceful monsters to become hostile, and has a chance of making tame monsters hostile as well. The chance of the latter happening is much higher if a tame monster has been abused or its tameness is low;
+
** [[ice bolt]]
*[[Divine wrath]], requires the monster to be at least level 23; the player's [[god]] becomes [[anger|angry]] (randomly increases anger by 1–3 points) and [[smiting|smites]] the character.
+
** [[enrage]]
The Call Undead arcane monster spell isn't restricted to liches in Slash'EM Extended. Instead, all arcane spellcasters that are at least level 10 can cast it. Also, the Wizard of Yendor has a small chance of casting Triple Trouble if there are two active wizards in the game.
+
** [[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===
 +
{{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.
 +
 
 +
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:
 +
 
 +
* Mage spells
 +
** [[Acid blast (monster spell)|acid blast]]
 +
** [[Cancellation (monster spell)|cancellation]]
 +
** [[fire bolt]]
 +
** [[ice bolt]]
 +
** [[Protection (monster spell)|protection]]
 +
** [[Reflection (monster spell)|reflection]]
 +
* Clerical spells
 +
** [[Call undead (EvilHack)|call undead]]
 +
** [[summon minion]]
 +
** [[Vulnerability (monster spell)|vulnerability]]
 +
* Other spells
 +
** [[Stone to flesh (monster spell)|stone to flesh]]
 +
 
 +
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 [[Death resistance|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; removing proofing counts as a level of damage for this purpose. 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 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 (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; 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==
Line 140: Line 179:
  
 
==References==
 
==References==
<references />
+
<references/>
 
+
{{nethack-367}}
{{nethack-343}}
 
 
[[Category:Monster spells| ]]
 
[[Category:Monster spells| ]]

Latest revision as of 09:54, 27 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; removing proofing counts as a level of damage for this purpose. 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