diff options
Diffstat (limited to 'crawl-ref/source/spl-mis.h')
-rw-r--r-- | crawl-ref/source/spl-mis.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-mis.h b/crawl-ref/source/spl-mis.h index 9c8a14b9b8..783562587f 100644 --- a/crawl-ref/source/spl-mis.h +++ b/crawl-ref/source/spl-mis.h @@ -79,9 +79,6 @@ private: kill_category kc; killer_type kt; - monsters* mon_target; - monsters* mon_source; - nothing_happens_when_type nothing_happens_when; int lethality_margin; @@ -112,6 +109,16 @@ private: void init(); std::string get_default_cause(); + monsters* target_as_monster() + { + return dynamic_cast<monsters*>(target); + } + + monsters* source_as_monster() + { + return dynamic_cast<monsters*>(act_source); + } + bool neither_end_silenced(); void do_msg(bool suppress_nothing_happens = false); |