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/>
|
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef ELUNA
|
||||||
|
#include "LuaEngine.h"
|
||||||
|
#include "ElunaUtility.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "DatabaseEnv.h"
|
#include "DatabaseEnv.h"
|
||||||
#include "WorldPacket.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
|
// now that we've done the basic check, now run the scripts
|
||||||
// should be done before the spell is actually executed
|
// 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
|
// 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
|
// Let any pets know we've attacked something. Check DmgClass for harmful spells only
|
||||||
|
|||||||
Reference in New Issue
Block a user