diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-25 14:33:36 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-25 14:33:36 +0000 |
commit | e6cc066b99c74af0ab0002aa48e1e950035b7511 (patch) | |
tree | 8b80d66f33a395232ea353e87f6891f1f4d5e67c /crawl-ref/source/spl-cast.cc | |
parent | 3c1801de248398a54a01daa2d107c4bd2d00a2b1 (diff) | |
download | crawl-ref-e6cc066b99c74af0ab0002aa48e1e950035b7511.tar.gz crawl-ref-e6cc066b99c74af0ab0002aa48e1e950035b7511.zip |
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
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 ))) { |