From 2c8d29b10d832a75c10e88fe520eeb651ed57513 Mon Sep 17 00:00:00 2001 From: KPhoenix <68359262+kphoenix137@users.noreply.github.com> Date: Sun, 10 Oct 2021 21:30:00 -0400 Subject: [PATCH] Update msg.cpp Fixes problem where you cannot cast spell on other players in the dungeon --- Source/msg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }