diff options
Diffstat (limited to 'src/game/SpellEffects.cpp')
| -rw-r--r-- | src/game/SpellEffects.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 76f2af18c50..efe742087c6 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -63,6 +63,7 @@ #include "SkillDiscovery.h" #include "Formulas.h" #include "Vehicle.h" +#include "ScriptMgr.h" pEffect SpellEffects[TOTAL_SPELL_EFFECTS]= { @@ -2145,11 +2146,11 @@ void Spell::EffectDummy(uint32 i) // Script based implementation. Must be used only for not good for implementation in core spell effects // So called only for not proccessed cases if(gameObjTarget) - Script->EffectDummyGameObj(m_caster, m_spellInfo->Id, i, gameObjTarget); + sScriptMgr.EffectDummyGameObj(m_caster, m_spellInfo->Id, i, gameObjTarget); else if(unitTarget && unitTarget->GetTypeId() == TYPEID_UNIT) - Script->EffectDummyCreature(m_caster, m_spellInfo->Id, i, (Creature*)unitTarget); + sScriptMgr.EffectDummyCreature(m_caster, m_spellInfo->Id, i, (Creature*)unitTarget); else if(itemTarget) - Script->EffectDummyItem(m_caster, m_spellInfo->Id, i, itemTarget); + sScriptMgr.EffectDummyItem(m_caster, m_spellInfo->Id, i, itemTarget); } void Spell::EffectTriggerSpellWithValue(uint32 i) @@ -3254,7 +3255,7 @@ void Spell::SendLoot(uint64 guid, LootType loottype) if (gameObjTarget) { - if (Script->GOHello(player, gameObjTarget)) + if (sScriptMgr.GOHello(player, gameObjTarget)) return; switch (gameObjTarget->GetGoType()) |
