From 3323fc00c666e6ecbb9d5cd9f821051b9cf973bb Mon Sep 17 00:00:00 2001 From: lello Date: Tue, 12 Jul 2016 01:40:48 +0200 Subject: [PATCH] =?UTF-8?q?[Core/Mechanics]=20Player,=20add=20support=20to?= =?UTF-8?q?=20gameobject=20to=20cast=20spell=20on=20player=20in=20Pv?= =?UTF-8?q?=E2=80=A6=20=E2=80=A6p=20zone.=20Also=20fix=20quest=209422/9419?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/Entities/GameObject/GameObject.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index c0db7f37c..98cb82b0b 100644 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -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);