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:
Yehonal
2016-07-14 09:07:26 +02:00
committed by GitHub

View File

@@ -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);