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.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index c41b24465a..9b3515fa0f 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -3019,6 +3019,12 @@ bool drink_fountain()
if ( feat != DNGN_BLUE_FOUNTAIN && feat != DNGN_SPARKLING_FOUNTAIN )
return false;
+ if (you.duration[DUR_LEVITATION] && !you.flies())
+ {
+ mpr("You're floating high above the fountain.");
+ return false;
+ }
+
potion_type fountain_effect = POT_WATER;
if ( feat == DNGN_BLUE_FOUNTAIN )
{