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:
Andrew 2026-03-26 21:51:48 -03:00 committed by GitHub
parent 44dfaf8075
commit df66e131c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -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');

View file

@ -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