summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-abil.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-07-07 09:04:26 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-07-07 09:05:58 -0700
commit750ad043500c6d258071104c18c7456b51558580 (patch)
tree4300dc38c22577fb30cc0114373caf5510dcf02a /crawl-ref/source/mon-abil.cc
parentb8fc1833ca8f03886627b67026df4a60c89f34bf (diff)
downloadcrawl-ref-750ad043500c6d258071104c18c7456b51558580.tar.gz
crawl-ref-750ad043500c6d258071104c18c7456b51558580.zip
Fix messaging for lost souls
They'll now print a message and turn the killed creature into a ghost even if the lost soul performing the spectralization was offscreen/invisible at the time.
Diffstat (limited to 'crawl-ref/source/mon-abil.cc')
-rw-r--r--crawl-ref/source/mon-abil.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/crawl-ref/source/mon-abil.cc b/crawl-ref/source/mon-abil.cc
index 91d6a8c76c..e2535e9953 100644
--- a/crawl-ref/source/mon-abil.cc
+++ b/crawl-ref/source/mon-abil.cc
@@ -1948,12 +1948,16 @@ bool lost_soul_revive(monster* mons)
mons->name(DESC_THE).c_str());
}
}
- else if (you.can_see(*mi))
+ else
{
- mprf("The lost soul assumes the form of %s%s!",
- mons->name(DESC_THE).c_str(),
- (mi->is_summoned() ? " and becomes anchored to this world"
- : ""));
+ if (you.can_see(mons))
+ {
+ mprf("%s lost soul assumes the form of %s%s!",
+ you.can_see(*mi) ? "The" : "A",
+ mons->name(DESC_THE).c_str(),
+ (mi->is_summoned() ? " and becomes anchored to this"
+ " world" : ""));
+ }
mons->flags |= MF_SPECTRALISED;
}