diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-10-02 20:43:57 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-10-03 19:04:36 +0200 |
commit | 26baee9f5fd0ee4a1a347b8958c09f2d15c349a7 (patch) | |
tree | e48d8272e804dfa1d8efbbdcc1f77859b7f0ec22 /crawl-ref/source/spl-tornado.cc | |
parent | f52e4921b92b321ad8abf7dfdb3e1610e05d966a (diff) | |
download | crawl-ref-26baee9f5fd0ee4a1a347b8958c09f2d15c349a7.tar.gz crawl-ref-26baee9f5fd0ee4a1a347b8958c09f2d15c349a7.zip |
Make most misc effects use victim->apply_ac().
Airstrike, Tornado, spines, earth miscasts, Mi headbutts.
In the case of Airstrike, this is a nerf by 0.5 points of damage on the
average.
Monster minotaur headbutts get a big buff as their attacker's (ie, usually
your) AC is no longer applied as a constant, but as random2(1 + ac) like in
other cases.
Diffstat (limited to 'crawl-ref/source/spl-tornado.cc')
-rw-r--r-- | crawl-ref/source/spl-tornado.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-tornado.cc b/crawl-ref/source/spl-tornado.cc index 6b8492962a..aa5b6c2a16 100644 --- a/crawl-ref/source/spl-tornado.cc +++ b/crawl-ref/source/spl-tornado.cc @@ -342,9 +342,9 @@ void tornado_damage(actor *caster, int dur) if (standing) float_player(false); } - int dmg = apply_chunked_AC( + int dmg = victim->apply_ac( div_rand_round(roll_dice(9, rpow), 15), - victim->armour_class()); + 0, AC_PROPORTIONAL); if (dur < 0) dmg = 0; dprf("damage done: %d", dmg); |