Add BlockWeather hook to Angelscript as well.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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);
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user