[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:
parent
ad3d901931
commit
3323fc00c6
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue