mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Scripts/BoT: fixed setting loot recipient for Elementium Monstrosity
This commit is contained in:
@@ -1321,6 +1321,8 @@ class npc_elementium_monstrosity : public CreatureScript
|
||||
void IsSummonedBy(Unit* /*summoner*/) override
|
||||
{
|
||||
DoZoneInCombat();
|
||||
if (Player* player = me->SelectNearestPlayer(100.0f))
|
||||
me->SetLootRecipient(player);
|
||||
DoCastSelf(SPELL_TWILIGHT_EXPLOSION_DND);
|
||||
DoCastSelf(SPELL_MERGE_HEALTH);
|
||||
Talk(SAY_SUMMONED);
|
||||
|
||||
Reference in New Issue
Block a user