This commit is contained in:
aozhiwei 2021-04-20 15:01:53 +08:00
parent ce3715d80f
commit 573a0d87eb
2 changed files with 3 additions and 2 deletions

View File

@ -1522,6 +1522,7 @@ void Creature::SummonHero(const a8::Vec2& pos,
dir, dir,
team_id team_id
); );
break;
} }
} }
} }

View File

@ -568,11 +568,11 @@ namespace MetaData
} }
{ {
std::vector<std::string> strings; std::vector<std::string> strings;
a8::Split(i->post_remove_action(), strings, '|'); a8::Split(i->buff_param1(), strings, '|');
for (auto& str : strings) { for (auto& str : strings) {
std::vector<std::string> strings2; std::vector<std::string> strings2;
a8::Split(str, strings2, ':'); a8::Split(str, strings2, ':');
if (strings2.size() > 4) { if (strings2.size() >= 4) {
int through_wall = a8::XValue(strings2[0]); int through_wall = a8::XValue(strings2[0]);
float x = a8::XValue(strings2[1]).GetDouble(); float x = a8::XValue(strings2[1]).GetDouble();
float y = a8::XValue(strings2[2]).GetDouble(); float y = a8::XValue(strings2[2]).GetDouble();