summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/main.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc
index 63c750eb13..31f7b755af 100644
--- a/crawl-ref/source/main.cc
+++ b/crawl-ref/source/main.cc
@@ -2280,6 +2280,13 @@ static void _decrement_durations()
}
}
+#if (TAG_MAJOR_VERSION == 15)
+ // The TAG_MAJOR #define is merely bait to make sure someone deletes this
+ // check after the affected games are fixed.
+ if (you.duration[DUR_TRANSFORMATION] < 0)
+ you.duration[DUR_TRANSFORMATION] = 1);
+#endif
+
// Vampire bat transformations are permanent (until ended).
if (you.species != SP_VAMPIRE || !player_in_bat_form()
|| you.duration[DUR_TRANSFORMATION] <= 5 * BASELINE_DELAY)