diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-04-13 22:09:40 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-05-07 18:23:24 -0600 |
commit | 17db3c18ea0925d927a7770c43f3187d963e1253 (patch) | |
tree | 9dc2174b74b4a2b2abdd61f606422493ab283d96 /crawl-ref/source/melee_attack.cc | |
parent | bef5296d49176f7f15cc0adaad85c62ea3366fbd (diff) | |
download | crawl-ref-17db3c18ea0925d927a7770c43f3187d963e1253.tar.gz crawl-ref-17db3c18ea0925d927a7770c43f3187d963e1253.zip |
Qazlal: Elemental Adaptation.
Taking damage from an elemental attack sometimes causes you to gain a
temporary point of resistance in that element (overriding the other
temporary resistances). This includes "earth attacks", i.e. physical
damage, which give you a 3 AC boost.
Thanks again to mikee for initially suggesting this idea.
Diffstat (limited to 'crawl-ref/source/melee_attack.cc')
-rw-r--r-- | crawl-ref/source/melee_attack.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/melee_attack.cc b/crawl-ref/source/melee_attack.cc index ed380ac5f7..e164ab1330 100644 --- a/crawl-ref/source/melee_attack.cc +++ b/crawl-ref/source/melee_attack.cc @@ -2917,6 +2917,9 @@ void melee_attack::mons_apply_attack_flavour() switch (flavour) { default: + // Just to trigger special melee damage effects for regular attacks + // (e.g. Qazlal's elemental adaptation). + defender->expose_to_element(BEAM_MISSILE, 2); break; case AF_MUTATE: @@ -3013,6 +3016,7 @@ void melee_attack::mons_apply_attack_flavour() } dprf(DIAG_COMBAT, "Shock damage: %d", special_damage); + defender->expose_to_element(BEAM_ELECTRICITY, 2); break; case AF_VAMPIRIC: |