diff --git a/Source/msg.cpp b/Source/msg.cpp index b2c14e0ac..1e63e104e 100644 --- a/Source/msg.cpp +++ b/Source/msg.cpp @@ -1173,7 +1173,7 @@ DWORD OnSpellPlayer(const TCmd *pCmd, Player &player) return sizeof(message); auto spell = static_cast(message.wParam2); - if (currlevel != 0 || spelldata[spell].sTownSpell) { + if (currlevel == 0 && !spelldata[spell].sTownSpell) { LogError(_("{:s} has cast an illegal spell."), player._pName); return sizeof(message); }