summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cloud.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-01-23 14:25:56 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-01-23 14:25:56 -0700
commit94aee4ab196a164e289051d21d6e9d13d219f556 (patch)
treeca7dd4ecde2ebaf8b39e0321d609024963efa2fb /crawl-ref/source/cloud.cc
parentc21c0b05395c9941a482eeb6b1e8fdeb4760736b (diff)
downloadcrawl-ref-94aee4ab196a164e289051d21d6e9d13d219f556.tar.gz
crawl-ref-94aee4ab196a164e289051d21d6e9d13d219f556.zip
Adjust handling of enemy Icemail melting.
This moves the code to monster::expose_to_element() (where it should be) and adjust cloud code to also call that function for monsters (not just players). Still to fix: enhancer staves not exposing targets to elements.
Diffstat (limited to 'crawl-ref/source/cloud.cc')
-rw-r--r--crawl-ref/source/cloud.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/cloud.cc b/crawl-ref/source/cloud.cc
index fcea890200..f2dcb44f90 100644
--- a/crawl-ref/source/cloud.cc
+++ b/crawl-ref/source/cloud.cc
@@ -1091,8 +1091,8 @@ int actor_apply_cloud(actor *act)
maybe_id_resist(cloud_flavour);
}
- if (player && cloud_flavour != BEAM_NONE)
- expose_player_to_element(cloud_flavour, 7, true, false);
+ if (cloud_flavour != BEAM_NONE)
+ act->expose_to_element(cloud_flavour, 7, true, false);
const bool side_effects =
_actor_apply_cloud_side_effects(act, cloud, final_damage);