diff options
author | megamage <none@none> | 2008-10-18 11:50:02 -0500 |
---|---|---|
committer | megamage <none@none> | 2008-10-18 11:50:02 -0500 |
commit | a3e03f62d04b45aa2e75040ed3b582cdc8da61a9 (patch) | |
tree | 161a87ab83a4655e9df5bcc3fb078ca09db6cb7d /src/game/Spell.cpp | |
parent | f141b156d51a3b8fe4cc7906eaae15b3f2864d84 (diff) |
[svn] Remove unused script event functions HealBy and DamageDeal. Add new function SpellHitTarget.
Fix a bug in r57_trinity.sql.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 1b4dbd20894..f82f2bd29bf 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -944,6 +944,9 @@ void Spell::DoAllEffectOnTarget(TargetInfo *target) if(((Creature*)unit)->AI()) ((Creature*)unit)->AI()->SpellHit(m_caster ,m_spellInfo); } + + if(m_caster->GetTypeId() == TYPEID_UNIT && ((Creature*)m_caster)->AI()) + ((Creature*)m_caster)->AI()->SpellHitTarget(unit, m_spellInfo); } void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask) |