Skip to content

Commit

Permalink
Merge pull request #10 from dongkui555/NAXX-1
Browse files Browse the repository at this point in the history
Update boss_gluth.cpp
  • Loading branch information
dongkui555 authored Jan 16, 2024
2 parents 6364424 + 3161fa3 commit aca946f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/server/scripts/Northrend/Naxxramas/boss_gluth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,21 @@ class boss_gluth : public CreatureScript
BossAI::JustDied(killer);
summons.DespawnAll();
}
//检测是否在房间内
bool IsInRoom(Unit* who)
{
if (who->GetPositionX() > 3353 || who->GetPositionX() < 3231 || who->GetPositionY() > -3086 || who->GetPositionY() < -3210 || who->GetPositionZ() > 307 || who->GetPositionZ() < 295)
{
if (who->GetGUID() == me->GetGUID())
{
summons.DespawnAll();
EnterEvadeMode();
}
return false;
}
return true;
}
//检测是否在房间内

bool SelectPlayerInRoom()
{
Expand Down

0 comments on commit aca946f

Please sign in to comment.