We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be4beee commit a61f16cCopy full SHA for a61f16c
engines/mm/mm1/views_enh/spells/cast_spell.cpp
@@ -82,15 +82,19 @@ void CastSpell::draw() {
82
bool CastSpell::msgKeypress(const KeypressMessage &msg) {
83
if (msg.keycode == Common::KEYCODE_c) {
84
// Cast a spell
85
- if (!canCast()) {
86
- close();
87
- spellError();
88
- } else if (hasCharTarget()) {
89
- addView("CharacterSelect");
90
- } else {
91
92
- castSpell();
+ const Character &c = *g_globals->_currCharacter;
+ if (c._nonCombatSpell != -1) {
+ if (!canCast()) {
+ close();
+ spellError();
+ } else if (hasCharTarget()) {
+ addView("CharacterSelect");
+ } else {
93
94
+ castSpell();
95
+ }
96
}
97
+
98
return true;
99
100
} else if (msg.keycode == Common::KEYCODE_n) {
0 commit comments