diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2012-09-23 23:11:32 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-09-24 00:38:40 +0200 |
commit | 0824a09233b68e3b6e38e62765e2e486b7478514 (patch) | |
tree | 59c227d214c141ca01509095dac2ef8c1813d962 /crawl-ref/source/melee_attack.h | |
parent | 07b43754a526a36cfb49bc4bdd99fa40b989a9f9 (diff) | |
download | crawl-ref-0824a09233b68e3b6e38e62765e2e486b7478514.tar.gz crawl-ref-0824a09233b68e3b6e38e62765e2e486b7478514.zip |
Only do handle_phase_attempted() once when cleaving.
It fixes a number of issues:
* You get a single stop attack prompt for all targets
* No more fumbling for each target
* Hunger cost isn't multiplied by targets
Still broken for ctrl+dir attacks.
Diffstat (limited to 'crawl-ref/source/melee_attack.h')
-rw-r--r-- | crawl-ref/source/melee_attack.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/melee_attack.h b/crawl-ref/source/melee_attack.h index c63c090036..2dda4ceca9 100644 --- a/crawl-ref/source/melee_attack.h +++ b/crawl-ref/source/melee_attack.h @@ -46,6 +46,7 @@ public: bool stab_attempt; int stab_bonus; + bool can_cleave; list<actor*> cleave_targets; bool cleaving; // additional attack from cleaving |