Skip to content

Commit

Permalink
Razzashi Serpent should not put itself to sleep.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed Nov 28, 2024
1 parent 46617be commit dac3984
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
22 changes: 22 additions & 0 deletions sql/migrations/20241128134921_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
DROP PROCEDURE IF EXISTS add_migration;
DELIMITER ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20241128134921');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20241128134921');
-- Add your query below.


-- Add spell list to Razzashi Serpent.
REPLACE INTO `creature_spells` (`entry`, `name`, `spellId_1`, `probability_1`, `castTarget_1`, `targetParam1_1`, `targetParam2_1`, `castFlags_1`, `delayInitialMin_1`, `delayInitialMax_1`, `delayRepeatMin_1`, `delayRepeatMax_1`, `scriptId_1`, `spellId_2`, `probability_2`, `castTarget_2`, `targetParam1_2`, `targetParam2_2`, `castFlags_2`, `delayInitialMin_2`, `delayInitialMax_2`, `delayRepeatMin_2`, `delayRepeatMax_2`, `scriptId_2`, `spellId_3`, `probability_3`, `castTarget_3`, `targetParam1_3`, `targetParam2_3`, `castFlags_3`, `delayInitialMin_3`, `delayInitialMax_3`, `delayRepeatMin_3`, `delayRepeatMax_3`, `scriptId_3`, `spellId_4`, `probability_4`, `castTarget_4`, `targetParam1_4`, `targetParam2_4`, `castFlags_4`, `delayInitialMin_4`, `delayInitialMax_4`, `delayRepeatMin_4`, `delayRepeatMax_4`, `scriptId_4`, `spellId_5`, `probability_5`, `castTarget_5`, `targetParam1_5`, `targetParam2_5`, `castFlags_5`, `delayInitialMin_5`, `delayInitialMax_5`, `delayRepeatMin_5`, `delayRepeatMax_5`, `scriptId_5`, `spellId_6`, `probability_6`, `castTarget_6`, `targetParam1_6`, `targetParam2_6`, `castFlags_6`, `delayInitialMin_6`, `delayInitialMax_6`, `delayRepeatMin_6`, `delayRepeatMax_6`, `scriptId_6`, `spellId_7`, `probability_7`, `castTarget_7`, `targetParam1_7`, `targetParam2_7`, `castFlags_7`, `delayInitialMin_7`, `delayInitialMax_7`, `delayRepeatMin_7`, `delayRepeatMax_7`, `scriptId_7`, `spellId_8`, `probability_8`, `castTarget_8`, `targetParam1_8`, `targetParam2_8`, `castFlags_8`, `delayInitialMin_8`, `delayInitialMax_8`, `delayRepeatMin_8`, `delayRepeatMax_8`, `scriptId_8`) VALUES (113710, 'Zul\'Gurub - Razzashi Serpent', 12097, 100, 1, 0, 0, 0, 8, 16, 16, 24, 0, 24002, 100, 1, 0, 0, 32, 5, 20, 5, 20, 0, 24003, 100, 5, 0, 0, 32, 5, 20, 5, 20, 0, 20539, 100, 1, 0, 0, 0, 20, 40, 20, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
UPDATE `creature_template` SET `spell_list_id`=113710, `script_name`='' WHERE `entry`=11371;


-- End of migration.
END IF;
END??
DELIMITER ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;
8 changes: 4 additions & 4 deletions src/game/Spells/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7467,17 +7467,17 @@ void SpellAuraHolder::HandleCastOnAuraRemoval() const

switch (GetId())
{
case 26180:
case 26180: // Wyvern Sting (AQ40, Princess Huhuran)
{
if (mode == AURA_REMOVE_BY_DISPEL)
uiTriggeredSpell = 26233; // Wyvern Sting (AQ40, Princess Huhuran)
uiTriggeredSpell = 26233;
break;
}
case 24002:
case 24002: // Tranquilizing Poison (ZG, Razzashi Serpent)
case 24003:
{
if (mode == AURA_REMOVE_BY_EXPIRE)
uiTriggeredSpell = 24004; // Tranquilizing Poison (ZG, Razzashi Serpent)
GetTarget()->CastSpell(GetTarget(), 24004, true);
break;
}
default:
Expand Down

0 comments on commit dac3984

Please sign in to comment.