fix(Scripts/Ulduar): Hodir boss fight issue (#5897)
Co-authored-by: Silker <61223313+Si1ker@users.noreply.github.com>
This commit is contained in:
parent
1ae8e7eca5
commit
adab416f29
1 changed files with 3 additions and 2 deletions
|
|
@ -239,7 +239,7 @@ public:
|
|||
pInstance->SetData(TYPE_HODIR, NOT_STARTED);
|
||||
}
|
||||
|
||||
if (GameObject* go = me->FindNearestGameObject(GO_HODIR_FRONTDOOR, 300.0f))
|
||||
if (GameObject* go = me->FindNearestGameObject(GO_HODIR_FRONTDOOR, 900.0f))
|
||||
{
|
||||
go->SetGoState(GO_STATE_ACTIVE);
|
||||
}
|
||||
|
|
@ -375,8 +375,9 @@ public:
|
|||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
if (!IsInRoom(&ENTRANCE_DOOR, Axis::AXIS_Y, false) || !IsInRoom(&EXIT_DOOR, Axis::AXIS_Y, true))
|
||||
if (me->GetPositionY() <= ENTRANCE_DOOR.GetPositionY() || me->GetPositionY() >= EXIT_DOOR.GetPositionY())
|
||||
{
|
||||
boss_hodirAI::EnterEvadeMode();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue