diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-01-23 14:25:56 -0700 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-01-23 14:25:56 -0700 |
commit | 94aee4ab196a164e289051d21d6e9d13d219f556 (patch) | |
tree | ca7dd4ecde2ebaf8b39e0321d609024963efa2fb /crawl-ref/source/cloud.cc | |
parent | c21c0b05395c9941a482eeb6b1e8fdeb4760736b (diff) | |
download | crawl-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.cc | 4 |
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); |