summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc22
1 files changed, 13 insertions, 9 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 35539ecdd9..7a0f3d5cb2 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -2747,13 +2747,15 @@ bool did_god_conduct(conduct_type thing_done, int level, bool known,
case GOD_ZIN:
case GOD_SHINING_ONE:
case GOD_ELYVILON:
- if (victim->attitude != ATT_HOSTILE
- || testbits(victim->flags, MF_CREATED_FRIENDLY)
- || testbits(victim->flags, MF_WAS_NEUTRAL))
+ if (victim->attitude == ATT_HOSTILE
+ && !testbits(victim->flags, MF_CREATED_FRIENDLY)
+ && !testbits(victim->flags, MF_WAS_NEUTRAL))
{
- penance = level * 3;
- piety_change = -level * 3;
+ break;
}
+
+ penance = level * 3;
+ piety_change = -level * 3;
retval = true;
break;
@@ -2813,12 +2815,14 @@ bool did_god_conduct(conduct_type thing_done, int level, bool known,
case GOD_ZIN:
case GOD_SHINING_ONE:
case GOD_ELYVILON:
- if (testbits(victim->flags, MF_CREATED_FRIENDLY)
- || testbits(victim->flags, MF_WAS_NEUTRAL))
+ if (!testbits(victim->flags, MF_CREATED_FRIENDLY)
+ && !testbits(victim->flags, MF_WAS_NEUTRAL))
{
- penance = level * 3;
- piety_change = -level * 3;
+ break;
}
+
+ penance = level * 3;
+ piety_change = -level * 3;
retval = true;
break;