Skip to content

Commit

Permalink
DB/Quest: undead start (The-Legion-Preservation-Project#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongdove authored Dec 5, 2024
1 parent eed2836 commit f1957fc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions sql/updates/world/2024_12_04_fix_undead_start.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--
SET @ENTRY := 49044;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,19,0,100,0,24959,0,0,0,11,73524,0,0,0,0,0,7,0,0,0,0.0,0.0,0.0,0.0,'Agatha - On quest 24959 - cast spell'),
(@ENTRY,0,1,0,61,0,100,0,0,0,0,0,28,73523,0,0,0,0,0,7,0,0,0,0.0,0.0,0.0,0.0,'Agatha - Remove aura from the player');

UPDATE `creature_template_addon` SET `auras` = '49414' WHERE `entry` = @ENTRY;

DELETE FROM `spell_area` WHERE spell=65051 and area=5692;
INSERT INTO `spell_area` (`spell`, `area`, `quest_start`, `quest_end`, `racemask`, `autocast`, `quest_start_status`, `quest_end_status`) VALUES
(65051, 5692, 0, 28608, 16, 1, 0, 3);
3 changes: 2 additions & 1 deletion src/server/game/Spells/SpellInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3053,9 +3053,10 @@ bool SpellInfo::_IsPositiveEffect(uint8 effIndex, bool deep) const
case 61716: // Rabbit Costume
case 61734: // Noblegarden Bunny
case 62344: // Fists of Stone
case 143842:// Mark of Anguish
case 73523: // Rigor Mortis
case 78627: // Deepstone Oil
case 78639: // Deepstone Oil mount
case 143842:// Mark of Anguish
return true;
default:
break;
Expand Down

0 comments on commit f1957fc

Please sign in to comment.