summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-17 18:04:46 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-17 18:04:46 +0000
commit18a94062a4fdde6994e4c4ad1598e38d79c24ee4 (patch)
tree14973f2d973acc92e77eded21da43adf413d4ab4 /crawl-ref/source/spells2.cc
parent2c1931a103ed51b5cc3b9ee203de22e74d5b6843 (diff)
downloadcrawl-ref-18a94062a4fdde6994e4c4ad1598e38d79c24ee4.tar.gz
crawl-ref-18a94062a4fdde6994e4c4ad1598e38d79c24ee4.zip
Enable handling of long-distance unchivalric attacks, and increase the
penalty from 4 to 5 for consistency with similar attacks frowned upon by the good gods. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5100 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 42c7243687..8fa47a82be 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -35,6 +35,7 @@
#include "directn.h"
#include "dungeon.h"
#include "effects.h"
+#include "fight.h"
#include "itemname.h"
#include "itemprop.h"
#include "items.h"
@@ -1213,6 +1214,9 @@ char burn_freeze(int pow, beam_type flavour)
else if (mons_neutral(monster))
did_god_conduct(DID_ATTACK_NEUTRAL, 5, true, monster);
+ if (is_unchivalric_attack(&you, monster, monster))
+ did_god_conduct(DID_UNCHIVALRIC_ATTACK, 5, true, monster);
+
if (mons_holiness(monster) == MH_HOLY)
did_god_conduct(DID_ATTACK_HOLY, monster->hit_dice);
}