mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
feat(Core/Eluna): PLAYER_EVENT_ON_SPELL_CAST (#1624)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user