Browse Source

Do not use mana in god mode

pull/2643/head
Anders Jenbo 5 years ago
parent
commit
5be9b1529e
  1. 7
      Source/spells.cpp

7
Source/spells.cpp

@ -7,6 +7,9 @@
#include "control.h" #include "control.h"
#include "cursor.h" #include "cursor.h"
#ifdef _DEBUG
#include "debug.h"
#endif
#include "engine/point.hpp" #include "engine/point.hpp"
#include "engine/random.hpp" #include "engine/random.hpp"
#include "gamemenu.h" #include "gamemenu.h"
@ -171,7 +174,7 @@ void UseMana(int id, spell_id sn)
break; break;
case RSPLTYPE_SPELL: case RSPLTYPE_SPELL:
#ifdef _DEBUG #ifdef _DEBUG
if (debug_mode_key_inverted_v) if (DebugGodMode)
break; break;
#endif #endif
ma = GetManaAmount(myPlayer, sn); ma = GetManaAmount(myPlayer, sn);
@ -199,7 +202,7 @@ void EnsureValidReadiedSpell(PlayerStruct &player)
SpellCheckResult CheckSpell(int id, spell_id sn, spell_type st, bool manaonly) SpellCheckResult CheckSpell(int id, spell_id sn, spell_type st, bool manaonly)
{ {
#ifdef _DEBUG #ifdef _DEBUG
if (debug_mode_key_inverted_v) if (DebugGodMode)
return SpellCheckResult::Success; return SpellCheckResult::Success;
#endif #endif

Loading…
Cancel
Save