Fix Script GetAttackDataForTarget function.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
85d402c2c1
commit
3a141e7f9d
|
@ -51,7 +51,7 @@ void RegisterExecutingAttack::RegisterTargetData(asIScriptEngine* engine) {
|
|||
void RegisterExecutingAttack::RegisterExecutingAttackType(asIScriptEngine* engine) {
|
||||
[[maybe_unused]] int r = engine->RegisterObjectType("ExecutingMove", 0, asOBJ_REF | asOBJ_NOCOUNT);
|
||||
assert(r >= 0);
|
||||
r = engine->RegisterObjectMethod("ExecutingMove", "TargetData& GetAttackDataForTarget(Pokemon@ pkmn) const",
|
||||
r = engine->RegisterObjectMethod("ExecutingMove", "TargetData@ GetAttackDataForTarget(Pokemon@ pkmn) const",
|
||||
asMETHOD(CreatureLib::Battling::ExecutingAttack, GetAttackDataForTarget),
|
||||
asCALL_THISCALL);
|
||||
assert(r >= 0);
|
||||
|
|
Loading…
Reference in New Issue