mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
[Core/Mechanics] Player, add support to gameobject to cast spell on player in Pv…
…p zone. Also fix quest 9422/9419
This commit is contained in:
@@ -1785,6 +1785,9 @@ void GameObject::Use(Unit* user)
|
||||
;//sLog->outDebug(LOG_FILTER_OUTDOORPVP, "WORLD: %u non-dbc spell was handled by OutdoorPvP", spellId);
|
||||
return;
|
||||
}
|
||||
|
||||
if (Player* player = user->ToPlayer())
|
||||
sOutdoorPvPMgr->HandleCustomSpell(player, spellId, this);
|
||||
|
||||
if (spellCaster)
|
||||
spellCaster->CastSpell(user, spellInfo, triggered);
|
||||
|
||||
Reference in New Issue
Block a user