mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 14:16:31 +00:00
fix(Scripts/HellfireRamparts): Hellfire Sentry should aggro on each o… (#13878)
fix(Scripts/HellfireRamparts): Hellfire Sentry should aggro on each other's target. Fixes #13747
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
--
|
||||
DELETE FROM `smart_scripts` WHERE `entryorguid`=17517 AND `source_type`=0 AND `id`=1;
|
||||
INSERT INTO `smart_scripts` VALUES
|
||||
(17517,0,1,0,4,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,23,0,0,0,0,0,0,0,0,'Hellfire Sentry - On Aggro - Set Data 0-1 on summoner');
|
||||
@@ -132,6 +132,14 @@ public:
|
||||
BossAI::EnterEvadeMode();
|
||||
}
|
||||
|
||||
void SetData(uint32 type, uint32 data) override
|
||||
{
|
||||
if (type == 0 && data == 1)
|
||||
{
|
||||
summons.DoZoneInCombat(NPC_HELLFIRE_SENTRY);
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 /*diff*/) override
|
||||
{
|
||||
if (!me->IsVisible() && summons.size() == 0)
|
||||
|
||||
Reference in New Issue
Block a user