Fixes for OnFaint in Angelscript.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
6d3c027a08
commit
4d81ca1d08
|
@ -345,7 +345,7 @@ CreatureLib::Battling::BattleScript* AngelScriptScript::Clone(const ArbUt::Optio
|
||||||
void AngelScriptScript::OnFaint(CreatureLib::Battling::Creature* creature, CreatureLib::Battling::DamageSource source) {
|
void AngelScriptScript::OnFaint(CreatureLib::Battling::Creature* creature, CreatureLib::Battling::DamageSource source) {
|
||||||
CALL_HOOK(OnFaint, {
|
CALL_HOOK(OnFaint, {
|
||||||
ctx->SetArgObject(0, (void*)creature);
|
ctx->SetArgObject(0, (void*)creature);
|
||||||
ctx->SetArgWord(1, static_cast<asWORD>(source));
|
ctx->SetArgDWord(1, static_cast<i32>(source));
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
void AngelScriptScript::BlockWeather(CreatureLib::Battling::Battle* battle, bool* blockWeather) {
|
void AngelScriptScript::BlockWeather(CreatureLib::Battling::Battle* battle, bool* blockWeather) {
|
||||||
|
|
Loading…
Reference in New Issue