summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mutation.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r--crawl-ref/source/mutation.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc
index 99fb8eee0f..077b16f44b 100644
--- a/crawl-ref/source/mutation.cc
+++ b/crawl-ref/source/mutation.cc
@@ -2049,7 +2049,8 @@ bool mutate(mutation_type which_mutation, bool failMsg,
case MUT_HOOVES:
case MUT_TALONS:
mpr(gain_mutation[mutat][you.mutation[mutat]], MSGCH_MUTATION);
- remove_one_equip(EQ_BOOTS);
+ if (you_tran_can_wear(EQ_BOOTS))
+ remove_one_equip(EQ_BOOTS);
break;
case MUT_CLAWS:
@@ -2060,7 +2061,7 @@ bool mutate(mutation_type which_mutation, bool failMsg,
// Gloves aren't prevented until level 3. We don't have the
// mutation yet, so we have to check for level 2 or higher claws
// here.
- if (you.mutation[mutat] >= 2)
+ if (you.mutation[mutat] >= 2 && you_tran_can_wear(EQ_GLOVES))
remove_one_equip(EQ_GLOVES);
break;
@@ -2070,7 +2071,8 @@ bool mutate(mutation_type which_mutation, bool failMsg,
// Horns force hard helmets off.
if (you.equip[EQ_HELMET] != -1
- && is_hard_helmet(you.inv[you.equip[EQ_HELMET]]))
+ && is_hard_helmet(you.inv[you.equip[EQ_HELMET]])
+ && you_tran_can_wear(EQ_HELMET))
{
remove_one_equip(EQ_HELMET);
}