OSDN Git Service

Add a check of magic castability when we use 'Powerful Activation'
authorhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 2 Feb 2013 18:13:19 +0000 (18:13 +0000)
committerhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 2 Feb 2013 18:13:19 +0000 (18:13 +0000)
src/racial.c

index 65eb5a6..c129db9 100644 (file)
@@ -1197,6 +1197,7 @@ static bool cmd_racial_power_aux(s32b command)
                        if (command == -3) {
                                if (!gain_magic()) return FALSE;
                        } else if (command == -4) {
+                               if (!can_do_cmd_cast()) return FALSE;
                                if (!do_cmd_magic_eater(FALSE, TRUE)) return FALSE;
                        }
                        break;