fix(Scripts/Dalaran): Prevent Minigob Manabonk from targeting GMs (#25123)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -526,6 +526,7 @@ struct npc_minigob_manabonk : public ScriptedAI
|
||||
void Reset() override
|
||||
{
|
||||
me->SetVisible(false);
|
||||
playerGUID.Clear();
|
||||
events.ScheduleEvent(EVENT_SELECT_TARGET, 1s);
|
||||
}
|
||||
|
||||
@@ -579,6 +580,11 @@ struct npc_minigob_manabonk : public ScriptedAI
|
||||
case EVENT_POLYMORPH:
|
||||
if (Player* player = ObjectAccessor::GetPlayer(*me, playerGUID))
|
||||
{
|
||||
if (player->IsGameMaster())
|
||||
{
|
||||
me->DespawnOrUnsummon();
|
||||
return;
|
||||
}
|
||||
DoCast(player, SPELL_MANABONKED);
|
||||
SendMailToPlayer(player);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user