summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-stuff.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mon-stuff.cc')
-rw-r--r--crawl-ref/source/mon-stuff.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/mon-stuff.cc b/crawl-ref/source/mon-stuff.cc
index 4b0114d5ee..eff21048af 100644
--- a/crawl-ref/source/mon-stuff.cc
+++ b/crawl-ref/source/mon-stuff.cc
@@ -1162,21 +1162,22 @@ static void _elven_twin_died(monsters* twin)
void pikel_band_neutralise ()
{
- // XXX: This is a really ugly hack. It should be replaced by something else
- // when band tracking is available. This assumes that the only human monsters
- // with MF_BAND_MEMBER are Pikel's band members.
bool message_made = false;
for (monster_iterator mi; mi; ++mi)
{
if (mi->type == MONS_HUMAN
- && testbits(mi->flags, MF_BAND_MEMBER))
+ && testbits(mi->flags, MF_BAND_MEMBER)
+ && mi->props.exists("pikel_band"))
{
if (mi->observable() && !message_made)
{
mpr("Pikel's slaves thank you for their freedom.");
message_made = true;
}
+
+ mi->mname = "freed slave";
+ // viewwindow();
mons_pacify(*mi);
}
}