fix(Core/PVP): Fix OutDoorPVP CustomSpell handling (#18389)

* fix(Core/PVP): Fix OutDoorPVP CustomSpell handling

- the function HandleCustomSpell() should only return
  true if it actually handled a spell

* comment unused parameter
This commit is contained in:
sudlud
2024-03-10 15:35:29 +01:00
committed by GitHub
parent 3f700645bd
commit bf17d93727

View File

@@ -553,9 +553,9 @@ bool OutdoorPvP::HandleCustomSpell(Player* player, uint32 spellId, GameObject* g
return false;
}
bool OPvPCapturePoint::HandleCustomSpell(Player* player, uint32 /*spellId*/, GameObject* /*go*/)
bool OPvPCapturePoint::HandleCustomSpell(Player* /*player*/, uint32 /*spellId*/, GameObject* /*go*/)
{
return player->IsOutdoorPvPActive();
return false;
}
bool OutdoorPvP::HandleOpenGo(Player* player, GameObject* go)