summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-01-09 20:20:56 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-01-10 11:27:23 -0700
commitc961fcdee648c1d4480faa3625dd4e7946c9a1ed (patch)
tree8fa4a0f093e039c48a249ab76ecef7b91eddf0bb /crawl-ref/source/fight.cc
parenta3a0f48aab735b2cba3a86c79a90fd6d840d5877 (diff)
downloadcrawl-ref-c961fcdee648c1d4480faa3625dd4e7946c9a1ed.tar.gz
crawl-ref-c961fcdee648c1d4480faa3625dd4e7946c9a1ed.zip
Shadow god: Shadow Mimic.
At a 10% chance at 4* piety up to 50% at 200 piety, you get an extra "shadow action" on melee, ranged attacks, or spells, where a shadow of your species and HD equal to your XL attacks with a +0 plain version of the relevant weapon or casts the relevant targeted spell. Having the full-powered version of the spell get cast here probably should be toned down somehow; it's significantly better than the other possible mimicked actions.
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 3ea895ae75..605551f005 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -19,6 +19,7 @@
#include "env.h"
#include "fineff.h"
#include "fprop.h"
+#include "godabil.h"
#include "hints.h"
#include "invent.h"
#include "itemprop.h"
@@ -32,6 +33,7 @@
#include "ouch.h"
#include "player.h"
#include "random-var.h"
+#include "religion.h"
#include "shopping.h"
#include "spl-miscast.h"
#include "spl-summoning.h"
@@ -117,6 +119,9 @@ bool fight_melee(actor *attacker, actor *defender, bool *did_hit, bool simu)
if (!simu && you.props.exists("spectral_weapon"))
trigger_spectral_weapon(&you, defender);
+ if (!simu && you_worship(GOD_DSOMETHING))
+ dsomething_shadow_melee(defender);
+
return true;
}