mirror of
https://github.com/araxiaonline/mod-azerothshard.git
synced 2026-06-13 01:32:21 -04:00
check if in instance
This commit is contained in:
@@ -42,6 +42,9 @@ public:
|
||||
WorldLocation pos = WorldLocation(player->GetMapId(), player->GetPositionX(), player->GetPositionY(), player->GetPositionZ(), player->GetOrientation());
|
||||
uint32 posLvl=sAzthUtils->getPositionLevel(true, player->GetMap(), pos);
|
||||
|
||||
if (!player->GetMap()->IsDungeon() && !player->GetMap()->IsRaid())
|
||||
return true;
|
||||
|
||||
uint32 level = player->getLevel();
|
||||
if (posLvl > level && posLvl - level == MAX_HIGHER_LEVEL) {
|
||||
return false;
|
||||
@@ -65,6 +68,9 @@ public:
|
||||
|
||||
uint32 level = player->getLevel();
|
||||
|
||||
if (!player->GetMap()->IsDungeon() && !player->GetMap()->IsRaid())
|
||||
return;
|
||||
|
||||
if (posLvl > level && posLvl - level == MAX_HIGHER_LEVEL) {
|
||||
chance = 0;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user