diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-13 15:46:45 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-13 15:46:45 +0000 |
commit | c32244f1ca9dfacd55040e1a61c3ff6c5c1ab4d5 (patch) | |
tree | ad68b92ce822cad4a7ba541282afdeba6b7fd9c4 /crawl-ref/source/beam.cc | |
parent | d436eeaf8f01d5e9b0476254171b6a0bcc2c403d (diff) | |
download | crawl-ref-c32244f1ca9dfacd55040e1a61c3ff6c5c1ab4d5.tar.gz crawl-ref-c32244f1ca9dfacd55040e1a61c3ff6c5c1ab4d5.zip |
Remove atk and def from melee_attack.
Rewrite some code to use actor methods instead of calling things
directly. In theory, attacker_as_monster() and defender_as_monster()
are hacks; any calls to them that can be replaced by calls to actor
methods should be.
Fix some inconsistencies with monster bleeding and summoned creatures.
(This should probably go into actor::can_bleed().)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8444 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index c35558f809..99059e85ff 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -2254,7 +2254,7 @@ int mons_adjust_flavoured(monsters *monster, bolt &pbolt, int hurted, // god wouldn't like to be hurt. if (mons_is_holy(monster) || you.religion == GOD_SHINING_ONE - && is_unchivalric_attack(&you, monster, monster) + && is_unchivalric_attack(&you, monster) || is_good_god(you.religion) && (is_follower(monster) || mons_neutral(monster))) { |