From e6cc066b99c74af0ab0002aa48e1e950035b7511 Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 25 Apr 2008 14:33:36 +0000 Subject: Fix specific references to vampires versus generic references to semi-undead. The latter are now only used for determining the following: whether the player can mutate, whether the player can rot, and how much the player resists Dispel Undead. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4621 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spl-cast.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/spl-cast.cc') diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index cc4fb2aeea..5c09d2c00e 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -663,7 +663,7 @@ bool cast_a_spell() return (false); } - if (you.is_undead != US_UNDEAD && you.is_undead != US_SEMI_UNDEAD + if (you.is_undead != US_UNDEAD && you.species != SP_VAMPIRE && (you.hunger_state == HS_STARVING || you.hunger <= spell_hunger( spell ))) { -- cgit v1.2.3-54-g00ecf