Skip to content

Commit

Permalink
fix(Scripts/Silithus): Solve issues with bosses despawing too fast (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeriah committed Dec 29, 2021
1 parent 7b7d9b3 commit 1a75b3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/scripts/Kalimdor/zone_silithus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,8 @@ class go_wind_stone : public GameObjectScript
return;
}
player->CastSpell(player, spellInfoTrigger->Id, false);
if (TempSummon* summons = go->SummonCreature(npc, go->GetPositionX(), go->GetPositionY(), go->GetPositionZ(), player->GetOrientation() - M_PI, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 6000))
// @todo: this is not correct! should despawn 5-6 seconds when out of combat, but can't be handled by tempsummon timer alone apparently
if (TempSummon* summons = go->SummonCreature(npc, go->GetPositionX(), go->GetPositionY(), go->GetPositionZ(), player->GetOrientation() - M_PI, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5 * 60 * 1000))
{
summons->SetTarget(player->GetGUID());
summons->SetLootRecipient(player);
Expand Down

0 comments on commit 1a75b3e

Please sign in to comment.