mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
fix(Scripts/SilverpineForest): Fix double spawn in Pyrewood Ambush an… (#21584)
This commit is contained in:
@@ -174,6 +174,7 @@ struct npc_deathstalker_fearleia : public ScriptedAI
|
|||||||
{
|
{
|
||||||
_playerGUID.Clear();
|
_playerGUID.Clear();
|
||||||
_summons.DespawnAll();
|
_summons.DespawnAll();
|
||||||
|
me->SetNpcFlag(UNIT_NPC_FLAG_QUESTGIVER);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -183,6 +184,7 @@ struct npc_deathstalker_fearleia : public ScriptedAI
|
|||||||
{
|
{
|
||||||
_questInProgress = true;
|
_questInProgress = true;
|
||||||
_playerGUID = player->GetGUID();
|
_playerGUID = player->GetGUID();
|
||||||
|
me->RemoveNpcFlag(UNIT_NPC_FLAG_QUESTGIVER);
|
||||||
}
|
}
|
||||||
|
|
||||||
Talk(NPCSAY_INIT, player);
|
Talk(NPCSAY_INIT, player);
|
||||||
@@ -204,7 +206,6 @@ struct npc_deathstalker_fearleia : public ScriptedAI
|
|||||||
SummonCreatureWithRandomTarget(2065, 0);
|
SummonCreatureWithRandomTarget(2065, 0);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
SummonCreatureWithRandomTarget(2066, 1);
|
|
||||||
SummonCreatureWithRandomTarget(2066, 1);
|
SummonCreatureWithRandomTarget(2066, 1);
|
||||||
SummonCreatureWithRandomTarget(2067, 0);
|
SummonCreatureWithRandomTarget(2067, 0);
|
||||||
SummonCreatureWithRandomTarget(2068, 2);
|
SummonCreatureWithRandomTarget(2068, 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user