Add BlockWeather hook to Angelscript as well.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-11-19 15:06:13 +01:00
parent b2accd720e
commit 496ebfdfa1
4 changed files with 9 additions and 0 deletions

View File

@@ -338,3 +338,9 @@ void AngelScriptScript::OnFaint(CreatureLib::Battling::Creature* creature, Creat
ctx->SetArgWord(1, static_cast<asWORD>(source));
})
}
void AngelScriptScript::BlockWeather(CreatureLib::Battling::Battle* battle, bool* blockWeather) {
CALL_HOOK(BlockWeather, {
ctx->SetArgObject(0, (void*)battle);
ctx->SetArgAddress(1, blockWeather);
})
}