diff options
author | Ed Gonzalez <ed.gonzalez3@gmail.com> | 2013-06-29 04:25:38 -0700 |
---|---|---|
committer | Pete Hurst <pete@streamuniverse.tv> | 2013-06-29 13:06:30 +0100 |
commit | 0bb85b4f141f76f5ac675fb26968252bf504d8b3 (patch) | |
tree | 0fb7b65d0b9aafef6d74d92461e00c40b1e79e00 /crawl-ref/source/fineff.h | |
parent | 6382b9ac15e1efb947f2d8b4960795e0de283172 (diff) | |
download | crawl-ref-0bb85b4f141f76f5ac675fb26968252bf504d8b3.tar.gz crawl-ref-0bb85b4f141f76f5ac675fb26968252bf504d8b3.zip |
Make Spectral Weapon damage sharing use a fineff.
This way the order of targets in an AoE shouldn't matter for the damage
sharing leaving you with at least 1hp.
Diffstat (limited to 'crawl-ref/source/fineff.h')
-rw-r--r-- | crawl-ref/source/fineff.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/fineff.h b/crawl-ref/source/fineff.h index f8c2f7ed9a..ce8db09dcf 100644 --- a/crawl-ref/source/fineff.h +++ b/crawl-ref/source/fineff.h @@ -125,9 +125,9 @@ class deferred_damage_fineff : public final_effect { public: deferred_damage_fineff(const actor *attack, const actor *defend, - int dam, bool _attacker_effects) + int dam, bool _attacker_effects, bool _fatal = true) : final_effect(attack, defend, coord_def()), - damage(dam), attacker_effects(_attacker_effects) + damage(dam), attacker_effects(_attacker_effects), fatal(_fatal) { } bool mergeable(const final_effect &a) const; @@ -136,6 +136,7 @@ public: protected: int damage; bool attacker_effects; + bool fatal; }; class starcursed_merge_fineff : public final_effect |