Fixed ModifyEffectChance function having uint16 instead of float as chance.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
3446412c0d
commit
f9f83f892d
|
@ -89,9 +89,9 @@ public:
|
|||
"void OnSecondaryEffect(ExecutingMove@ attack, Pokemon@ target, uint8 hit)");
|
||||
SCRIPT_HOOK_FUNCTION(OnAfterHits, "void OnAfterHits(ExecutingMove@ attack, Pokemon@ target)");
|
||||
SCRIPT_HOOK_FUNCTION(ModifyEffectChance,
|
||||
"void ModifyEffectChance(ExecutingMove@ attack, Pokemon@ target, uint16& chance)");
|
||||
"void ModifyEffectChance(ExecutingMove@ attack, Pokemon@ target, float& chance)");
|
||||
SCRIPT_HOOK_FUNCTION(ModifyIncomingEffectChance,
|
||||
"void ModifyIncomingEffectChance(ExecutingMove@ attack, Pokemon@ target, uint16& chance)");
|
||||
"void ModifyIncomingEffectChance(ExecutingMove@ attack, Pokemon@ target, float& chance)");
|
||||
};
|
||||
|
||||
#undef SCRIPT_HOOK_FUNCTION
|
||||
|
|
|
@ -21,8 +21,8 @@ shared abstract class PkmnScript {
|
|||
void OnSecondaryEffect(ExecutingMove@ attack, Pokemon@ target, uint8 hit){};
|
||||
void OnAfterHits(ExecutingMove@ attack, Pokemon@ target){};
|
||||
|
||||
void ModifyEffectChance(ExecutingMove@ attack, Pokemon@ target, uint16& chance){};
|
||||
void ModifyIncomingEffectChance(ExecutingMove@ attack, Pokemon@ target, uint16& chance){};
|
||||
void ModifyEffectChance(ExecutingMove@ attack, Pokemon@ target, float& chance){};
|
||||
void ModifyIncomingEffectChance(ExecutingMove@ attack, Pokemon@ target, float& chance){};
|
||||
}
|
||||
)");
|
||||
assert(r >= 0);
|
||||
|
|
Loading…
Reference in New Issue