diff options
author | megamage <none@none> | 2008-12-03 17:57:47 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-03 17:57:47 -0600 |
commit | c1f49df3da3628adb2866cc5f5cf95c78ba80955 (patch) | |
tree | 705467e0c9fe92688a54f22c64355d97bdc9d545 | |
parent | cd4e545155417593c670d72bbf9625962e0a9eda (diff) |
*Move Wyvern Sting from core to db. (linked spells)
--HG--
branch : trunk
-rw-r--r-- | sql/updates/389_world.sql | 7 | ||||
-rw-r--r-- | src/game/SpellAuras.cpp | 29 |
2 files changed, 7 insertions, 29 deletions
diff --git a/sql/updates/389_world.sql b/sql/updates/389_world.sql new file mode 100644 index 00000000000..5dc88d362ae --- /dev/null +++ b/sql/updates/389_world.sql @@ -0,0 +1,7 @@ +DELETE FROM spell_linked_spell WHERE `spell_trigger` IN (-19386, -24132, -24133, -27068, -49011, -49012); +INSERT INTO spell_linked_spell (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES (-19386, 24131, 0, 'Wyvern Sting'); +INSERT INTO spell_linked_spell (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES (-24132, 24134, 0, 'Wyvern Sting'); +INSERT INTO spell_linked_spell (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES (-24133, 24135, 0, 'Wyvern Sting'); +INSERT INTO spell_linked_spell (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES (-27068, 27069, 0, 'Wyvern Sting'); +INSERT INTO spell_linked_spell (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES (-49011, 49009, 0, 'Wyvern Sting'); +INSERT INTO spell_linked_spell (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES (-49012, 49010, 0, 'Wyvern Sting');
\ No newline at end of file diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 490bd630006..afdbda37627 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -3188,35 +3188,6 @@ void Aura::HandleAuraModStun(bool apply, bool Real) data << uint32(0); m_target->SendMessageToSet(&data,true); } - - // Wyvern Sting - if (GetSpellProto()->SpellFamilyName == SPELLFAMILY_HUNTER && GetSpellProto()->SpellIconID == 1721) - { - Unit* caster = GetCaster(); - if( !caster || caster->GetTypeId()!=TYPEID_PLAYER ) - return; - - uint32 spell_id = 0; - - switch(GetId()) - { - case 19386: spell_id = 24131; break; - case 24132: spell_id = 24134; break; - case 24133: spell_id = 24135; break; - case 27068: spell_id = 27069; break; - default: - sLog.outError("Spell selection called for unexpected original spell %u, new spell for this spell family?",GetId()); - return; - } - - SpellEntry const* spellInfo = sSpellStore.LookupEntry(spell_id); - - if(!spellInfo) - return; - - caster->CastSpell(m_target,spellInfo,true,NULL,this); - return; - } } } |