Removed OnStatusMove hook.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -167,15 +167,6 @@ public:
|
||||
})
|
||||
}
|
||||
|
||||
void OnStatusMove(const CreatureLib::Battling::ExecutingAttack* attack, CreatureLib::Battling::Creature* target,
|
||||
uint8_t hitNumber) override {
|
||||
CALL_HOOK(OnStatusMove, {
|
||||
ctx->SetArgObject(0, (void*)attack);
|
||||
ctx->SetArgObject(1, (void*)target);
|
||||
ctx->SetArgByte(2, hitNumber);
|
||||
})
|
||||
}
|
||||
|
||||
void PreventSecondaryEffects(const CreatureLib::Battling::ExecutingAttack* attack,
|
||||
CreatureLib::Battling::Creature* target, uint8_t hitNumber, bool* outResult) override {
|
||||
CALL_HOOK(PreventSecondaryEffects, {
|
||||
|
||||
@@ -90,7 +90,6 @@ public:
|
||||
SCRIPT_HOOK_FUNCTION(OnAttackMiss, "void OnAttackMiss(ExecutingMove@ attack, Pokemon@ target)");
|
||||
SCRIPT_HOOK_FUNCTION(ChangeAttackType,
|
||||
"void ChangeAttackType(ExecutingMove@ attack, Pokemon@ target, uint8 hit, uint8& outType)");
|
||||
SCRIPT_HOOK_FUNCTION(OnStatusMove, "void OnStatusMove(ExecutingMove@ attack, Pokemon@ target, uint8 hit)");
|
||||
SCRIPT_HOOK_FUNCTION(
|
||||
PreventSecondaryEffects,
|
||||
"void PreventSecondaryEffects(ExecutingMove@ attack, Pokemon@ target, uint8 hit, bool& outResult)");
|
||||
|
||||
@@ -18,7 +18,6 @@ shared abstract class PkmnScript {
|
||||
void IsInvulnerable(ExecutingMove@ attack, Pokemon@ target, bool& result){};
|
||||
void OnAttackMiss(ExecutingMove@ attack, Pokemon@ target){};
|
||||
void ChangeAttackType(ExecutingMove@ attack, Pokemon@ target, uint8 hit, uint8& outType){};
|
||||
void OnStatusMove(ExecutingMove@ attack, Pokemon@ target, uint8 hit){};
|
||||
void PreventSecondaryEffects(ExecutingMove@ attack, Pokemon@ target, uint8 hit, bool& outResult){};
|
||||
void OnSecondaryEffect(ExecutingMove@ attack, Pokemon@ target, uint8 hit){};
|
||||
void OnAfterHits(ExecutingMove@ attack, Pokemon@ target){};
|
||||
|
||||
Reference in New Issue
Block a user