Core/Quests: Correct use of parenthesis in IsAutoComplete and IsAutoAccept
Closes #5195
This commit is contained in:
@@ -319,7 +319,7 @@ bool Condition::Meets(ConditionSourceInfo& sourceInfo)
|
||||
}
|
||||
case CONDITION_PHASEMASK:
|
||||
{
|
||||
condMeets = (bool)(object->GetPhaseMask() & mConditionValue1);
|
||||
condMeets = object->GetPhaseMask() & mConditionValue1;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
@@ -212,12 +212,12 @@ int32 Quest::GetRewOrReqMoney() const
|
||||
|
||||
bool Quest::IsAutoAccept() const
|
||||
{
|
||||
return sWorld->getBoolConfig(CONFIG_QUEST_IGNORE_AUTO_ACCEPT) ? false : Flags & QUEST_FLAGS_AUTO_ACCEPT;
|
||||
return sWorld->getBoolConfig(CONFIG_QUEST_IGNORE_AUTO_ACCEPT) ? false : (Flags & QUEST_FLAGS_AUTO_ACCEPT);
|
||||
}
|
||||
|
||||
bool Quest::IsAutoComplete() const
|
||||
{
|
||||
return sWorld->getBoolConfig(CONFIG_QUEST_IGNORE_AUTO_COMPLETE) ? false : Method == 0 || HasFlag(QUEST_FLAGS_AUTOCOMPLETE);
|
||||
return sWorld->getBoolConfig(CONFIG_QUEST_IGNORE_AUTO_COMPLETE) ? false : (Method == 0 || HasFlag(QUEST_FLAGS_AUTOCOMPLETE));
|
||||
}
|
||||
|
||||
bool Quest::IsAllowedInRaid() const
|
||||
|
||||
Reference in New Issue
Block a user