mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Scripts/RubySanctum: Fix a mathematical mistake.
SQL: Do not use MAX(Id), hardcode it.
This commit is contained in:
@@ -5,10 +5,9 @@ INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
|
||||
(75880, "spell_halion_spawn_living_embers");
|
||||
|
||||
DELETE FROM `spelleffect_dbc` WHERE `EffectSpellId` IN (75880, 75881);
|
||||
SET @MaxEffectEntry := (SELECT MAX(Id) + 1 FROM `spelleffect_dbc`);
|
||||
INSERT INTO `spelleffect_dbc` (`Id`, `EffectSpellId`, `EffectIndex`, `Effect`, `EffectImplicitTargetA`, `EffectImplicitTargetB`, `EffectRadiusIndex`, `EffectRadiusIndexMax`, `EffectMiscValue`, `EffectMiscValueB`) VALUES
|
||||
(@MaxEffectEntry + 0, 75880, 0, 77, 22, 7, 12, 12, 0, 0),
|
||||
(@MaxEffectEntry + 1, 75881, 0, 28, 18, 0, 12, 12, 40055, 64);
|
||||
(155915, 75880, 0, 77, 22, 7, 12, 12, 0, 0),
|
||||
(155916, 75881, 0, 28, 18, 0, 12, 12, 40055, 64);
|
||||
|
||||
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=75880;
|
||||
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES
|
||||
|
||||
Reference in New Issue
Block a user