summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.h
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2012-09-23 23:11:32 +0200
committerRaphael Langella <raphael.langella@gmail.com>2012-09-24 00:38:40 +0200
commit0824a09233b68e3b6e38e62765e2e486b7478514 (patch)
tree59c227d214c141ca01509095dac2ef8c1813d962 /crawl-ref/source/fight.h
parent07b43754a526a36cfb49bc4bdd99fa40b989a9f9 (diff)
downloadcrawl-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/fight.h')
-rw-r--r--crawl-ref/source/fight.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.h b/crawl-ref/source/fight.h
index 03078d001d..780ae7fc32 100644
--- a/crawl-ref/source/fight.h
+++ b/crawl-ref/source/fight.h
@@ -47,6 +47,7 @@ int player_weapon_str_weight();
int player_weapon_dex_weight();
void get_cleave_targets(coord_def atk, coord_def def, int dir,
list<actor*> &targets);
+void get_all_cleave_targets(coord_def atk, coord_def def, list<actor*> &targets);
void attack_cleave_targets(actor* attacker, list<actor*> &targets,
int attack_number = 0,
int effective_attack_number = 0);