diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-19 23:56:01 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-19 23:56:01 +0000 |
commit | e1d8ce31f86e6e5300ca48a9045c3d4b229846c6 (patch) | |
tree | e6ce71725b3c54a668b7b0ccfeee3b7fd4e5d988 /crawl-ref/source/effects.cc | |
parent | fad49feb8f562b62d6faf413adc6bdbafa52121c (diff) | |
download | crawl-ref-e1d8ce31f86e6e5300ca48a9045c3d4b229846c6.tar.gz crawl-ref-e1d8ce31f86e6e5300ca48a9045c3d4b229846c6.zip |
Per Haran's suggestion, simplify by using monsters::mindex().
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8606 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r-- | crawl-ref/source/effects.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 94a6019e5d..6479059e7a 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -342,8 +342,7 @@ void immolation(int pow, int caster, coord_def where, bool known, else { beam.thrower = KILL_MON; - beam.beam_source = - monster_index(dynamic_cast<const monsters*>(attacker)); + beam.beam_source = attacker->mindex(); } beam.explode(); @@ -391,8 +390,7 @@ void cleansing_flame(int pow, int caster, coord_def where, else { beam.thrower = KILL_MON; - beam.beam_source = - monster_index(dynamic_cast<const monsters*>(attacker)); + beam.beam_source = attacker->mindex(); } beam.explode(); |