mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[10169] New config option Quests.IgnoreRaid
It allow if enabled (disbled by default) do non-raids quests in raid.
This commit is contained in:
parent
617dd4391a
commit
ff1259b30f
6 changed files with 19 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue