Reworks setting script owner to something a lot more clean
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-03-06 12:04:21 +01:00
parent 66c742e225
commit e18767995c
5 changed files with 55 additions and 22 deletions

View File

@@ -13,6 +13,7 @@ static std::unordered_map<const char*, const char*> _scripts =
void Test(){
auto mon = cast<Pokemon@>(GetOwner());
if (mon is null){
print("mon was null");
throw("Owner was null!");
}
}