Changeset 57 for trunk/src/game/SpellEffects.cpp
- Timestamp:
- 11/19/08 13:29:59 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/SpellEffects.cpp
r56 r57 4666 4666 } 4667 4667 4668 // Dreaming Glory4669 case 28698:4670 {4671 if(!unitTarget)4672 return;4673 unitTarget->CastSpell(unitTarget, 28694, true);4674 break;4675 }4676 4677 4668 // Netherbloom 4678 4669 case 28702: … … 4747 4738 } 4748 4739 } 4749 break;4750 }4751 case 41126: // Flame Crash4752 {4753 if(!unitTarget)4754 return;4755 4756 unitTarget->CastSpell(unitTarget, 41131, true);4757 break;4758 }4759 case 44876: // Force Cast - Portal Effect: Sunwell Isle4760 {4761 if(!unitTarget)4762 return;4763 4764 unitTarget->CastSpell(unitTarget, 44870, true);4765 4740 break; 4766 4741 } … … 4791 4766 break; 4792 4767 } 4768 4769 } 4770 4771 if(!unitTarget || !unitTarget->isAlive()) // can we remove this check? 4772 { 4773 sLog.outError("Spell %u in EffectScriptEffect does not have unitTarget", m_spellInfo->Id); 4774 return; 4775 } 4776 4777 switch(m_spellInfo->Id) 4778 { 4779 // Dreaming Glory 4780 case 28698: unitTarget->CastSpell(unitTarget, 28694, true); break; 4781 // Needle Spine 4782 case 39835: unitTarget->CastSpell(unitTarget, 39968, true); break; 4783 // Draw Soul 4784 case 40904: unitTarget->CastSpell(m_caster, 40903, true); break; 4785 // Flame Crash 4786 case 41126: unitTarget->CastSpell(unitTarget, 41131, true); break; 4787 // Force Cast - Portal Effect: Sunwell Isle 4788 case 44876: unitTarget->CastSpell(unitTarget, 44870, true); break; 4793 4789 //5,000 Gold 4794 4790 case 46642: 4795 4791 { 4796 if(!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER) 4797 return; 4798 4799 ((Player*)unitTarget)->ModifyMoney(50000000); 4800 4792 if(unitTarget->GetTypeId() == TYPEID_PLAYER) 4793 ((Player*)unitTarget)->ModifyMoney(50000000); 4801 4794 break; 4802 4795 } … … 4810 4803 case 0x800000: 4811 4804 { 4812 if(!unitTarget || !unitTarget->isAlive())4813 return;4814 4805 uint32 spellId2 = 0; 4815 4806 … … 4862 4853 4863 4854 // normal DB scripted effect 4864 if(!unitTarget)4865 return;4866 4867 4855 sLog.outDebug("Spell ScriptStart spellid %u in EffectScriptEffect ", m_spellInfo->Id); 4868 4856 sWorld.ScriptsStart(sSpellScripts, m_spellInfo->Id, m_caster, unitTarget);