diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-03-12 19:18:12 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-03-12 19:18:12 +0100 |
commit | 3fc1cc2adb725a83a838ef82f67a3997a62ebaf9 (patch) | |
tree | b6bd462ec9a11f6ac5611a0139a1f1b80c2be1bb /crawl-ref/source/target.h | |
parent | 4544842b0823e338cba268666fd2f8a362240d88 (diff) | |
download | crawl-ref-3fc1cc2adb725a83a838ef82f67a3997a62ebaf9.tar.gz crawl-ref-3fc1cc2adb725a83a838ef82f67a3997a62ebaf9.zip |
Fix placing Fire Storm on a wall.
Both in the old and new targetter you could aim it on a wall (tree, statue)
and have no effect other than losing mana and causing noise.
TODO: The message is wrong, fixing that would require a bit of refactoring
I have partially stashed on another machine.
Diffstat (limited to 'crawl-ref/source/target.h')
-rw-r--r-- | crawl-ref/source/target.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/target.h b/crawl-ref/source/target.h index 998c4abcca..1c5a2786c5 100644 --- a/crawl-ref/source/target.h +++ b/crawl-ref/source/target.h @@ -50,7 +50,7 @@ class targetter_smite : public targetter { public: targetter_smite(const actor *act, int range = LOS_RADIUS, - int exp_min = 0, int exp_max = 0); + int exp_min = 0, int exp_max = 0, bool wall_ok = false); bool set_aim(coord_def a); bool valid_aim(coord_def a); aff_type is_affected(coord_def loc); @@ -59,6 +59,7 @@ private: // assumes exp_map is valid only if >0, so let's keep it private int exp_range_min, exp_range_max; explosion_map exp_map_min, exp_map_max; + bool affects_walls; }; class targetter_reach : public targetter |