From 18a94062a4fdde6994e4c4ad1598e38d79c24ee4 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 17 May 2008 18:04:46 +0000 Subject: 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 --- crawl-ref/source/spells2.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/spells2.cc') 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); } -- cgit v1.2.3-54-g00ecf