fix(Scripts/RuinsOfAhnQiraj): Rewrite Moam (#12539)

* fix(Scripts/RuinsOfAhnQiraj): Rewrite Moam

* serverside spell for summons, as well as summon phase handling

* end stone phase if he reaches full mana

* add missing emote

* remove unused variable

* move script to the new model

* Update boss_moam.cpp

* should not drain mana while stoned
This commit is contained in:
Skjalf
2022-07-26 01:25:29 -03:00
committed by GitHub
parent b1136c7c24
commit fdb18e0204
2 changed files with 136 additions and 109 deletions

View File

@@ -0,0 +1,12 @@
--
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_moam_mana_drain_filter';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(25676, 'spell_moam_mana_drain_filter');
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_moam_summon_mana_fiends';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(25684, 'spell_moam_summon_mana_fiends');
DELETE FROM `creature_text` WHERE `CreatureID` = 15340 AND `GroupID` = 2;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(15340, 2, 0, '%s drains your mana and turns to stone.', 16, 0, 100, 0, 0, 0, 11474, 0, 'moam EMOTE_STONE_PHASE');