summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-17 00:41:44 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-17 00:41:44 +0000
commit938d297d2b1dbb2fc080e3f4aa9b5bd5e6a98a71 (patch)
treef491d6fb072d016757a0f44fa41de36623456d05 /crawl-ref/source/fight.cc
parent8067633855b60b37d4a5ee04b4dbd9e07f141732 (diff)
downloadcrawl-ref-938d297d2b1dbb2fc080e3f4aa9b5bd5e6a98a71.tar.gz
crawl-ref-938d297d2b1dbb2fc080e3f4aa9b5bd5e6a98a71.zip
Add an unchivalric attack type for petrifying monsters.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8479 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index c8d748cd07..8e370819bc 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -291,9 +291,13 @@ unchivalric_attack_type is_unchivalric_attack(const actor *attacker,
unchivalric = UCAT_INVISIBLE;
// held in a net
- if (mons_is_caught(def) || mons_is_petrifying(def))
+ if (mons_is_caught(def))
unchivalric = UCAT_HELD_IN_NET;
+ // petrifying
+ if (mons_is_petrifying(def))
+ unchivalric = UCAT_PETRIFYING;
+
// paralysed
if (def->cannot_act())
unchivalric = UCAT_PARALYSED;