[10169] New config option Quests.IgnoreRaid

It allow if enabled (disbled by default) do non-raids quests in raid.
This commit is contained in:
VladimirMangos 2010-07-09 17:16:56 +04:00
parent 617dd4391a
commit ff1259b30f
6 changed files with 19 additions and 2 deletions

View file

@ -262,3 +262,11 @@ int32 Quest::GetRewOrReqMoney() const
return int32(RewOrReqMoney * sWorld.getConfig(CONFIG_FLOAT_RATE_DROP_MONEY));
}
bool Quest::IsAllowedInRaid() const
{
if (QUEST_TYPE_RAID || Type == QUEST_TYPE_RAID_10 || Type == QUEST_TYPE_RAID_25)
return true;
return sWorld.getConfig(CONFIG_BOOL_QUEST_IGNORE_RAID);
}