Skip to content

Commit

Permalink
奥尔加隆已修复,回滚自定义修复
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinZhu committed Jan 2, 2024
1 parent bf18fdf commit bae54ea
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/server/scripts/Northrend/Ulduar/Ulduar/instance_ulduar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1156,36 +1156,6 @@ class instance_ulduar : public InstanceMapScript
if (m_algalonTimer)
{
_events.Repeat(1min);

if (Creature* algalon = instance->GetCreature(m_uiAlgalonGUID))
{
LOG_ERROR("module", "奥尔加隆存活,跳过召唤");
}
else
{
if (m_algalonTimer && (m_algalonTimer <= 60 || m_algalonTimer == TIMER_ALGALON_TO_SUMMON))
{
TempSummon* algalon = instance->SummonCreature(NPC_ALGALON, AlgalonLandPos);
LOG_ERROR("module", "奥尔加隆召唤完成");
if (!algalon)
return;

if (m_algalonTimer <= 60)
{
_events.RescheduleEvent(EVENT_UPDATE_ALGALON_TIMER, 1min);
algalon->AI()->DoAction(ACTION_INIT_ALGALON);
}
else // if (m_algalonTimer = TIMER_ALGALON_TO_SUMMON)
{
m_algalonTimer = TIMER_ALGALON_SUMMONED;
algalon->SetImmuneToPC(false);
}
}
else
{
LOG_ERROR("module", "奥尔加隆挑战超时,跳过召唤");
}
}
return;
}

Expand Down

0 comments on commit bae54ea

Please sign in to comment.