fix(Scripts/UtgardeKeep): Prince Keleseth not aggroing (#15523)

* fix(Scripts/Instance): Utgarde Keep - Prince Keleseth not aggroing from proximity.

* update

* zzz

* typo

* remove broadcast_text update
This commit is contained in:
avarishd
2023-03-23 13:08:29 +02:00
committed by GitHub
parent 61652c20c1
commit 970aca642e
2 changed files with 15 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
-- Prince Keleseth (Utgarde Keep)
DELETE FROM `creature_text` WHERE `CreatureID`=23953 AND `GroupID`=6;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(23953, 6, 0, 'Darkness waits.', 14, 0, 0, 0, 0, 13223, 29591, 0, 'Prince Keleseth - SAY_KILL');
DELETE FROM `creature_text_locale` WHERE `CreatureID`=23953 AND `GroupID`=6 AND `Locale`='zhCN';
INSERT INTO `creature_text_locale` (`CreatureID`, `GroupID`, `ID`, `Locale`, `Text`) VALUES
(23953, 6, 0, 'zhCN', '黑暗在等着你呢。');

View File

@@ -29,6 +29,7 @@ enum eTexts
SAY_SUMMON_SKELETONS = 2,
SAY_FROST_TOMB_EMOTE = 4,
SAY_DEATH = 5,
SAY_KILL = 6,
};
enum eNPCs
@@ -140,14 +141,13 @@ public:
pInstance->SetData(DATA_KELESETH, NOT_STARTED);
}
void MoveInLineOfSight(Unit* /*who*/) override {}
/*void KilledUnit(Unit * victim)
void KilledUnit(Unit* victim) override
{
if (victim == me)
return;
DoScriptText(SAY_KILL, me);
}*/
if (victim->IsPlayer())
{
Talk(SAY_KILL);
}
}
void JustDied(Unit* /*killer*/) override
{