Attached Files |
Rmsl-Amulet-fix.patch [^] (1,052 bytes) 2014-02-27 05:33 [Show Content] [Hide Content]From d8ae40276ca300de44680a9e9441383f293c3516 Mon Sep 17 00:00:00 2001
From: Brandon Kime <rbrandonkime@gmail.com>
Date: Wed, 26 Feb 2014 23:26:40 -0500
Subject: [PATCH] Disable casting of Repel Missiles while wearing the Amulet of
the Air.
This fixes (#8181). Casting Rmsl while wearing the amulet does nothing but waste a turn. This fixes that.
---
crawl-ref/source/spl-selfench.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/crawl-ref/source/spl-selfench.cc b/crawl-ref/source/spl-selfench.cc
index 7cb0a34..d7bba31 100644
--- a/crawl-ref/source/spl-selfench.cc
+++ b/crawl-ref/source/spl-selfench.cc
@@ -112,7 +112,8 @@ spret_type ice_armour(int pow, bool fail)
spret_type missile_prot(int pow, bool fail)
{
if (you.attribute[ATTR_REPEL_MISSILES]
- || you.attribute[ATTR_DEFLECT_MISSILES])
+ || you.attribute[ATTR_DEFLECT_MISSILES]
+ || player_equip_unrand(251)) // Amulet of the Air
{
mpr("You are already protected from missiles.");
return SPRET_ABORT;
--
1.8.3.2
|