Fixes invalid set up of ChangeAttack.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
2396615d4a
commit
b0f9daef60
|
@ -50,7 +50,7 @@ void AngelScriptScript::OnBeforeTurn(const CreatureLib::Battling::BaseTurnChoice
|
||||||
void AngelScriptScript::ChangeAttack(CreatureLib::Battling::AttackTurnChoice* choice, ArbUt::StringView* outAttack) {
|
void AngelScriptScript::ChangeAttack(CreatureLib::Battling::AttackTurnChoice* choice, ArbUt::StringView* outAttack) {
|
||||||
CALL_HOOK(ChangeAttack, {
|
CALL_HOOK(ChangeAttack, {
|
||||||
ctx->SetArgObject(0, (void*)choice);
|
ctx->SetArgObject(0, (void*)choice);
|
||||||
ctx->SetArgAddress(0, outAttack);
|
ctx->SetArgAddress(1, outAttack);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
void AngelScriptScript::PreventAttack(CreatureLib::Battling::ExecutingAttack* attack, bool* outResult) {
|
void AngelScriptScript::PreventAttack(CreatureLib::Battling::ExecutingAttack* attack, bool* outResult) {
|
||||||
|
|
Loading…
Reference in New Issue