From 8dbcc4dbe18b959b2eab5a2c20aac3f97c6179f9 Mon Sep 17 00:00:00 2001 From: haranp Date: Fri, 6 Feb 2009 14:32:02 +0000 Subject: Restore a monster's attitude from the beginning of the attack if it changes during the attack and the monster is about to die, so that you don't get Okawaru piety for killing an ally just before you receive the penance. Fixes [2436051]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8925 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/fight.h') diff --git a/crawl-ref/source/fight.h b/crawl-ref/source/fight.h index 9786a8ba7c..e4048e6f9f 100644 --- a/crawl-ref/source/fight.h +++ b/crawl-ref/source/fight.h @@ -80,6 +80,9 @@ public: bool attacker_visible, defender_visible; bool attacker_invisible, defender_invisible; + // What was the monster's attitude when the attack began? + mon_attitude_type defender_starting_attitude; + bool unarmed_ok; int attack_number; -- cgit v1.2.3-54-g00ecf