mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
Merge pull request #11 from lellonicole/CastSpellOnPlayer_pvpZone
[Core/Mechanics] Player, add support to gameobject to cast spell on p…
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