summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 258f03e0bc..e621b1e663 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -1710,17 +1710,17 @@ static bool _item_penetrates_victim(const bolt &beam, const actor *victim,
static bool _silver_damages_victim(bolt &beam, actor* victim, int &dmg,
std::string &dmg_msg)
{
- bool shifter_or_chaotic;
+ bool chaotic;
if (victim->atype() == ACT_MONSTER)
{
monsters* mon = dynamic_cast<monsters*>(victim);
- shifter_or_chaotic = mons_is_chaotic(mon); // Includes shapeshifters.
+ chaotic = mons_is_chaotic(mon); // Includes shapeshifters.
}
else
- shifter_or_chaotic = transform_changed_physiology();
+ chaotic = transform_changed_physiology();
- if (shifter_or_chaotic || victim->is_unholy())
+ if (chaotic || victim->is_unholy())
{
dmg *= 2;