diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp index c94931a..6c7eb62 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp @@ -11,7 +11,7 @@ void RegisterBattleClass::RegisterBattleRandom(asIScriptEngine* engine) { [[maybe_unused]] int r = engine->RegisterObjectType("BattleRandom", 0, asOBJ_REF | asOBJ_NOCOUNT); assert(r >= 0); r = engine->RegisterObjectMethod("BattleRandom", - "bool EffectChance(int16 chance, ExecutingMove@ move, Pokemon@ target )", + "bool EffectChance(float chance, ExecutingMove@ move, Pokemon@ target )", asMETHOD(CreatureLib::Battling::BattleRandom, EffectChance), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod("BattleRandom", "int Get()",