Implements pokemon specific damage source handling.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-19 13:20:14 +02:00
parent af737cf8b8
commit 95209e51a4
3 changed files with 64 additions and 47 deletions

View File

@@ -146,8 +146,8 @@ void AngelScripResolver::FinalizeModule() {
if (r < 0)
throw CreatureException("Building Script Module failed.");
asUINT count = _mainModule->GetObjectTypeCount();
std::regex metadataMatcher("^\\s*(\\w+)([\\w\\s=]*)$", std::regex_constants::icase);
std::regex variableMatcher("\\s*(\\w+)=(\\w+)", std::regex_constants::icase);
std::regex metadataMatcher(R"(^\s*(\w+)([\w\s=]*)$)", std::regex_constants::icase);
std::regex variableMatcher(R"(\s*(\w+)=(\w+))", std::regex_constants::icase);
std::smatch base_match;
for (asUINT n = 0; n < count; n++) {