feat(Core/Modules): add separated lib for modules (#9281)

This commit is contained in:
Kargatum
2021-12-02 20:28:58 +07:00
committed by GitHub
parent 8668a03e14
commit 51adbffae4
56 changed files with 1904 additions and 1014 deletions

View File

@@ -15,11 +15,6 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef ELUNA
#include "ElunaUtility.h"
#include "LuaEngine.h"
#endif
#include "Spell.h"
#include "ArenaSpectator.h"
#include "BattlefieldMgr.h"
@@ -3586,9 +3581,7 @@ 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
#ifdef ELUNA
sEluna->OnSpellCast(playerCaster, this, skipCheck);
#endif
sScriptMgr->OnPlayerSpellCast(playerCaster, this, skipCheck);
// 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