feat(Core/Eluna): PLAYER_EVENT_ON_SPELL_CAST (#1624)

This commit is contained in:
WiZZy
2019-06-08 00:39:09 +03:00
committed by Stoabrogga
parent 3f4c2f7652
commit 204160b121

View File

@@ -4,6 +4,11 @@
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*/
#ifdef ELUNA
#include "LuaEngine.h"
#include "ElunaUtility.h"
#endif
#include "Common.h"
#include "DatabaseEnv.h"
#include "WorldPacket.h"
@@ -3653,7 +3658,9 @@ void Spell::_cast(bool skipCheck)
{
// now that we've done the basic check, now run the scripts
// should be done before the spell is actually executed
//sScriptMgr->OnPlayerSpellCast(playerCaster, this, skipCheck); // pussywizard: optimization
#ifdef ELUNA
sEluna->OnSpellCast(playerCaster, this, skipCheck);
#endif
// As of 3.0.2 pets begin attacking their owner's target immediately
// Let any pets know we've attacked something. Check DmgClass for harmful spells only