fix(Core/Spells): Fix Flexweave Underlay script targeting wrong spell (#25255)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
44dfaf8075
commit
df66e131c9
2 changed files with 5 additions and 2 deletions
|
|
@ -0,0 +1,3 @@
|
|||
-- Move Flexweave Underlay script from enchant application spell (55002) to parachute use-spell (55001)
|
||||
DELETE FROM `spell_script_names` WHERE `spell_id` IN (55001, 55002) AND `ScriptName` = 'spell_item_flexweave_underlay';
|
||||
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (55001, 'spell_item_flexweave_underlay');
|
||||
|
|
@ -3564,7 +3564,7 @@ class spell_item_rocket_boots : public SpellScript
|
|||
}
|
||||
};
|
||||
|
||||
// 55002 - Flexweave Underlay
|
||||
// 55001 - Flexweave Underlay (Parachute)
|
||||
class spell_item_flexweave_underlay : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_item_flexweave_underlay);
|
||||
|
|
@ -3573,7 +3573,7 @@ class spell_item_flexweave_underlay : public SpellScript
|
|||
{
|
||||
if (GetCaster()->IsFlying() || GetCaster()->IsFalling())
|
||||
return SPELL_CAST_OK;
|
||||
return SPELL_FAILED_NOT_FLYING;
|
||||
return SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW;
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue