Browse Source

Update msg.cpp

Fixes problem where you cannot cast spell on other players in the dungeon
pull/3094/head
KPhoenix 4 years ago committed by Anders Jenbo
parent
commit
2c8d29b10d
  1. 2
      Source/msg.cpp

2
Source/msg.cpp

@ -1173,7 +1173,7 @@ DWORD OnSpellPlayer(const TCmd *pCmd, Player &player)
return sizeof(message);
auto spell = static_cast<spell_id>(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);
}

Loading…
Cancel
Save