summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/uncancel.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-05-06 19:39:20 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-07 18:23:34 -0600
commitf25431f1f0bb12d6d846ebff2a9f49d88f0472ee (patch)
tree5a2bc3a1359efde3dca6d278c71f56580efabc98 /crawl-ref/source/uncancel.cc
parent96155f285f40cdba3563b22b3d9a028a68e54326 (diff)
downloadcrawl-ref-f25431f1f0bb12d6d846ebff2a9f49d88f0472ee.tar.gz
crawl-ref-f25431f1f0bb12d6d846ebff2a9f49d88f0472ee.zip
Use uncancels for Gozag abilities.
Includes properly splitting the usability checks out of the function itself.
Diffstat (limited to 'crawl-ref/source/uncancel.cc')
-rw-r--r--crawl-ref/source/uncancel.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/uncancel.cc b/crawl-ref/source/uncancel.cc
index fc76f8c3f9..58862caa90 100644
--- a/crawl-ref/source/uncancel.cc
+++ b/crawl-ref/source/uncancel.cc
@@ -7,6 +7,7 @@
#include "AppHdr.h"
#include "acquire.h"
#include "decks.h"
+#include "godabil.h"
#include "libutil.h"
#include "player.h"
#include "state.h"
@@ -61,6 +62,15 @@ void run_uncancels()
return;
break;
+ case UNC_POTION_PETITION:
+ if (!gozag_potion_petition() && crawl_state.seen_hups)
+ return;
+ break;
+
+ case UNC_CALL_MERCHANT:
+ if (!gozag_call_merchant() && crawl_state.seen_hups)
+ return;
+ break;
}
if (act != -1)