mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Spells: Move Big Blizzard Bear implementation to spell script (#19544)
This commit is contained in:
2
sql/updates/world/3.3.5/2017_05_04_03_world.sql
Normal file
2
sql/updates/world/3.3.5/2017_05_04_03_world.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_big_blizzard_bear';
|
||||
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (58983, 'spell_big_blizzard_bear');
|
||||
@@ -3809,24 +3809,6 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
||||
|
||||
return;
|
||||
}
|
||||
case 58983: // Big Blizzard Bear
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
// Prevent stacking of mounts and client crashes upon dismounting
|
||||
unitTarget->RemoveAurasByType(SPELL_AURA_MOUNTED);
|
||||
|
||||
// Triggered spell id dependent on riding skill
|
||||
if (uint16 skillval = unitTarget->ToPlayer()->GetSkillValue(SKILL_RIDING))
|
||||
{
|
||||
if (skillval >= 150)
|
||||
unitTarget->CastSpell(unitTarget, 58999, true);
|
||||
else
|
||||
unitTarget->CastSpell(unitTarget, 58997, true);
|
||||
}
|
||||
return;
|
||||
}
|
||||
case 59317: // Teleporting
|
||||
{
|
||||
|
||||
|
||||
@@ -3121,6 +3121,7 @@ void SpellMgr::LoadSpellInfoCorrections()
|
||||
47977, // Magic Broom
|
||||
48025, // Headless Horseman's Mount
|
||||
54729, // Winged Steed of the Ebon Blade
|
||||
58983, // Big Blizzard Bear
|
||||
71342, // Big Love Rocket
|
||||
72286, // Invincible
|
||||
74856, // Blazing Hippogryph
|
||||
|
||||
@@ -1922,6 +1922,10 @@ enum Mounts
|
||||
SPELL_WINGED_STEED_150 = 54726,
|
||||
SPELL_WINGED_STEED_280 = 54727,
|
||||
|
||||
// Big Blizzard Bear
|
||||
SPELL_BIG_BLIZZARD_BEAR_60 = 58997,
|
||||
SPELL_BIG_BLIZZARD_BEAR_100 = 58999,
|
||||
|
||||
// Big Love Rocket
|
||||
SPELL_BIG_LOVE_ROCKET_0 = 71343,
|
||||
SPELL_BIG_LOVE_ROCKET_60 = 71344,
|
||||
@@ -4291,6 +4295,7 @@ void AddSC_generic_spell_scripts()
|
||||
new spell_gen_mount("spell_magic_broom", 0, SPELL_MAGIC_BROOM_60, SPELL_MAGIC_BROOM_100, SPELL_MAGIC_BROOM_150, SPELL_MAGIC_BROOM_280);
|
||||
new spell_gen_mount("spell_headless_horseman_mount", 0, SPELL_HEADLESS_HORSEMAN_MOUNT_60, SPELL_HEADLESS_HORSEMAN_MOUNT_100, SPELL_HEADLESS_HORSEMAN_MOUNT_150, SPELL_HEADLESS_HORSEMAN_MOUNT_280);
|
||||
new spell_gen_mount("spell_winged_steed_of_the_ebon_blade", 0, 0, 0, SPELL_WINGED_STEED_150, SPELL_WINGED_STEED_280);
|
||||
new spell_gen_mount("spell_big_blizzard_bear", 0, SPELL_BIG_BLIZZARD_BEAR_60, SPELL_BIG_BLIZZARD_BEAR_100);
|
||||
new spell_gen_mount("spell_big_love_rocket", SPELL_BIG_LOVE_ROCKET_0, SPELL_BIG_LOVE_ROCKET_60, SPELL_BIG_LOVE_ROCKET_100, SPELL_BIG_LOVE_ROCKET_150, SPELL_BIG_LOVE_ROCKET_310);
|
||||
new spell_gen_mount("spell_invincible", 0, SPELL_INVINCIBLE_60, SPELL_INVINCIBLE_100, SPELL_INVINCIBLE_150, SPELL_INVINCIBLE_310);
|
||||
new spell_gen_mount("spell_blazing_hippogryph", 0, 0, 0, SPELL_BLAZING_HIPPOGRYPH_150, SPELL_BLAZING_HIPPOGRYPH_280);
|
||||
|
||||
Reference in New Issue
Block a user