aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-09-23 20:19:21 -0700
committermaximius <none@none>2009-09-23 20:19:21 -0700
commit906b00465ad7c41a018a6c6ea3f37b6c466d38cd (patch)
treedf4aa409d11e89d85fa8d8c3e9a0c424df29f612 /src/game/Spell.cpp
parent8102372a67098e1af65888b0b411eb3b47814bf0 (diff)
*add 11 new event hooks to the OnEvents system, by Hawthorne
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 8c751656795..1c0444cf782 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -49,6 +49,7 @@
#include "Util.h"
#include "TemporarySummon.h"
#include "Vehicle.h"
+#include "ScriptCalls.h"
#define SPELL_CHANNEL_UPDATE_INTERVAL (1 * IN_MILISECONDS)
@@ -4306,6 +4307,10 @@ void Spell::HandleThreatSpells(uint32 spellId)
void Spell::HandleEffects(Unit *pUnitTarget,Item *pItemTarget,GameObject *pGOTarget,uint32 i)
{
+
+ if(!Script->OnSpellCast(pUnitTarget,pItemTarget,pGOTarget,i,m_spellInfo))
+ return;
+
//effect has been handled, skip it
if(m_effectMask & (1<<i))
return;