Fixes Status Database All CalcFlag (#6826)
* Fixes #6812. * Resolves an issue with the All CalcFlag not properly being parsed for the Status Database resulting in these statuses not starting and ending the bonuses. Thanks to @eppc0330!
This commit is contained in:
parent
a7fbcfa1f8
commit
f083caf28d
@ -14759,18 +14759,16 @@ uint64 StatusDatabase::parseBodyNode(const ryml::NodeRef& node) {
|
|||||||
if (this->nodeExists(node, "CalcFlags")) {
|
if (this->nodeExists(node, "CalcFlags")) {
|
||||||
const ryml::NodeRef& flagNode = node["CalcFlags"];
|
const ryml::NodeRef& flagNode = node["CalcFlags"];
|
||||||
|
|
||||||
for (const auto &it : flagNode) {
|
if (this->nodeExists(flagNode, "All")) {
|
||||||
if (this->nodeExists(it, "All")) {
|
bool active;
|
||||||
bool active;
|
|
||||||
|
|
||||||
if (!this->asBool(it, "All", active))
|
if (!this->asBool(flagNode, "All", active))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (active)
|
if (active)
|
||||||
status->calc_flag = this->getSCB_ALL();
|
status->calc_flag = this->getSCB_ALL();
|
||||||
else
|
else
|
||||||
status->calc_flag.reset();
|
status->calc_flag.reset();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto &it : flagNode) {
|
for (const auto &it : flagNode) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user