diff options
-rw-r--r-- | crawl-ref/source/religion.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 01f537ef13..8fb3596d81 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -786,12 +786,11 @@ static bool blessing_ac(monsters* mon) int slot; - if (armour == NON_ITEM) - slot = shield; - else if (shield == NON_ITEM) - slot = armour; - else + do + { slot = (coinflip()) ? armour : shield; + } + while (slot == NON_ITEM); item_def& arm(mitm[slot]); |