Skip to content

Commit

Permalink
Merge 3.3.5-base_patch to 3.3.5-paymaster
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions committed Jul 17, 2023
2 parents e6f6ba7 + 70db3fe commit ffc49a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/game/Handlers/SpellHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,13 @@ void WorldSession::HandleCastSpellOpcode(WorldPacket& recvPacket)
HandleClientCastFlags(recvPacket, castFlags, targets);

// not have spell in spellbook
if (_player->GetTypeId() == TYPEID_PLAYER && !_player->ToPlayer()->HasActiveSpell(spellId))
if (!_player->HasActiveSpell(spellId))
{
bool allow = false;

// allow casting of unknown spells for special lock cases
if (GameObject *go = targets.GetGOTarget())
if (go->GetSpellForLock(_player->ToPlayer()) == spellInfo)
if (GameObject* go = targets.GetGOTarget())
if (go->GetSpellForLock(_player) == spellInfo)
allow = true;

// allow casting of spells triggered by clientside periodic trigger auras
Expand Down

0 comments on commit ffc49a2

Please sign in to comment.