Core/RBAC: Create 'Skip instance required bosses check' permission

This commit is contained in:
Spp
2013-02-25 11:50:13 +01:00
parent 8810fcb575
commit 1638092f18
3 changed files with 16 additions and 1 deletions

View File

@@ -954,7 +954,7 @@ class instance_icecrown_citadel : public InstanceMapScript
bool CheckRequiredBosses(uint32 bossId, Player const* player = NULL) const
{
if (player && AccountMgr::IsGMAccount(player->GetSession()->GetSecurity()))
if (player && player->GetSession()->HasPermission(RBAC_PERM_SKIP_CHECK_INSTANCE_REQUIRED_BOSSES))
return true;
switch (bossId)