Fixed some bugs with the new skill db

Fixes #4590

Thanks to @mazvi
This commit is contained in:
Lemongrass3110
2020-02-02 16:04:11 +01:00
parent 990c81f024
commit 5cf7aceb2a
4 changed files with 249 additions and 5 deletions

View File

@@ -21237,7 +21237,7 @@ uint64 SkillDatabase::parseBodyNode(const YAML::Node &node) {
const YAML::Node &elementNode = node["Element"];
std::string element;
if (node.IsScalar()) {
if (elementNode.IsScalar()) {
if (!this->asString(node, "Element", element))
return 0;
@@ -21723,8 +21723,8 @@ uint64 SkillDatabase::parseBodyNode(const YAML::Node &node) {
}
}
if (this->nodeExists(requireNode, "SphereCost")) {
if (!this->parseNode("SphereCost", "Amount", requireNode, skill->require.spiritball))
if (this->nodeExists(requireNode, "SpiritSphereCost")) {
if (!this->parseNode("SpiritSphereCost", "Amount", requireNode, skill->require.spiritball))
return 0;
} else {
if (!exists)