Skip to content

Commit

Permalink
Add skip attunement check for playerbots
Browse files Browse the repository at this point in the history
  • Loading branch information
davidonete committed Mar 6, 2024
1 parent 7785e51 commit 58dd39f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/game/Entities/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20048,6 +20048,12 @@ AreaLockStatus Player::GetAreaTriggerLockStatus(AreaTrigger const* at, uint32& m
if (!GetGroup() || !GetGroup()->IsRaidGroup())
return AREA_LOCKSTATUS_RAID_LOCKED;

#ifdef ENABLE_PLAYERBOTS
// Playerbots can skip raid requirements
if (!isRealPlayer() && GetPlayerbotAI() && GetPlayerbotAI()->CanEnterArea(at))
return AREA_LOCKSTATUS_OK;
#endif

// Item Requirements: must have requiredItem OR requiredItem2, report the first one that's missing
if (at->requiredItem)
{
Expand Down

0 comments on commit 58dd39f

Please sign in to comment.