From 24940bfaa94fd26d676a40d33c4d78438aa8315d Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Wed, 4 Nov 2009 21:12:31 +0100 Subject: Fix is_armour_brand_ok: helmets can be int, only them can be see invis. --- crawl-ref/source/makeitem.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/makeitem.cc') diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index 4c4cec2c2a..dcbc80dc61 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -2273,11 +2273,11 @@ bool is_armour_brand_ok(int type, int brand) return (slot == EQ_GLOVES); case SPARM_INTELLIGENCE: - if (type == ARM_HELMET) - return (false); - case SPARM_SEE_INVISIBLE: return (slot == EQ_HELMET); + case SPARM_SEE_INVISIBLE: + return (type == ARM_HELMET); + case SPARM_FIRE_RESISTANCE: case SPARM_COLD_RESISTANCE: if (slot == EQ_BOOTS && type != ARM_BOOTS) // both bardings -- cgit v1.2.3-54-g00ecf