diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-22 19:45:42 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-22 19:45:42 +0000 |
commit | 47386690ed83155fc660c15f19c780b9dbf4d386 (patch) | |
tree | 1610679a7d4ec6a2e0005de2f8f6c89569ba50e5 /crawl-ref/source/misc.cc | |
parent | e253274f72e6f51e8f9638f3d62152405223292a (diff) | |
download | crawl-ref-47386690ed83155fc660c15f19c780b9dbf4d386.tar.gz crawl-ref-47386690ed83155fc660c15f19c780b9dbf4d386.zip |
Fix [2701428]: TSO will no longer give piety loss and penance for
attacking and killing hostile holy beings (not counting holy beings that
weren't hostile until you attacked them, of course). The warning prompt
now takes this into account, as well.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9532 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 97134dc9e3..0c78d07da5 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -3013,7 +3013,10 @@ bool stop_attack_prompt(const monsters *mon, bool beam_attack, const bool isFriendly = mons_friendly(mon); const bool isNeutral = mons_neutral(mon); const bool isUnchivalric = is_unchivalric_attack(&you, mon); - const bool isHoly = mons_is_holy(mon); + const bool isHoly = mons_is_holy(mon) + && (mon->attitude != ATT_HOSTILE + || testbits(mon->flags, MF_CREATED_FRIENDLY) + || testbits(mon->flags, MF_WAS_NEUTRAL)); if (isFriendly) { @@ -3033,8 +3036,6 @@ bool stop_attack_prompt(const monsters *mon, bool beam_attack, && you.religion == GOD_SHINING_ONE && !tso_unchivalric_attack_safe_monster(mon)) { - // "Really fire through the helpless neutral holy Daeva?" - // was: "Really fire through this helpless neutral holy creature?" snprintf(info, INFO_SIZE, "Really %s the %s%s%s%s%s?", (beam_attack) ? (beam_target) ? "fire at" : "fire through" |