*add 11 new event hooks to the OnEvents system, by Hawthorne
--HG-- branch : trunk
This commit is contained in:
1 parent
8102372a67
commit
906b00465a
16 files changed
+319
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user