diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-06-26 22:50:29 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-06-26 22:50:29 +0200 |
commit | 99ce8d3f78aaac0ffb66fa54880b4fd9e615e835 (patch) | |
tree | 90a6ce2f64cfa70f0309e3080fca3106394cec56 /crawl-ref/source/fineff.cc | |
parent | ccb88dfcbde477f3b0f9524016d16e4f9b3f107c (diff) | |
download | crawl-ref-99ce8d3f78aaac0ffb66fa54880b4fd9e615e835.tar.gz crawl-ref-99ce8d3f78aaac0ffb66fa54880b4fd9e615e835.zip |
Use a fineff for melee distortion blinks and teleports.
They can possibly cause an Abyss shift, removing the attacker in the middle
of a combat call.
Diffstat (limited to 'crawl-ref/source/fineff.cc')
-rw-r--r-- | crawl-ref/source/fineff.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/fineff.cc b/crawl-ref/source/fineff.cc index 80c7705723..ec9524dd7a 100644 --- a/crawl-ref/source/fineff.cc +++ b/crawl-ref/source/fineff.cc @@ -119,6 +119,11 @@ void fire_final_effects() if (defender && defender->alive() && !defender->no_tele(true, false)) defender->blink(); break; + + case FINEFF_DISTORTION_TELEPORT: + if (defender && defender->alive() && !defender->no_tele(true, false)) + defender->teleport(true, one_chance_in(5)); + break; } } env.final_effects.clear(); |