summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index c9602632f4..6e4d895468 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -1563,7 +1563,18 @@ void monster_die(monsters *monster, killer_type killer,
break;
}
- if (monster->type == MONS_BORIS && !in_transit)
+ // Make sure Boris has a foe to address
+ if (monster->foe == MHITNOT)
+ {
+ // Hostile monsters outside of the arena always have you as a
+ // foe.
+ if (!mons_wont_attack(monster) && !crawl_state.arena)
+ monster->foe = MHITYOU;
+ else if (!invalid_monster_index(killer_index))
+ monster->foe = killer_index;
+ }
+
+ if (monster->type == MONS_BORIS && monster->foe != MHITNOT && !in_transit)
{
// XXX: Actual blood curse effect for Boris? -- bwr