Scripts/BoT: fixed setting loot recipient for Elementium Monstrosity

This commit is contained in:
Ovahlord
2018-11-24 22:53:58 +01:00
parent b8a2043f95
commit 998add622c

View File

@@ -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);