Adds damage script hooks.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-10-29 18:29:30 +02:00
parent 3d75e8233d
commit f447e40663
5 changed files with 17 additions and 1 deletions

View File

@@ -57,7 +57,8 @@ uint32_t PkmnLib::Battling::DamageLibrary::GetDamage(CreatureLib::Battling::Exec
} else {
damage = static_cast<uint32_t>(floatDamage);
}
// HOOK: Override damage
PKMN_HOOK(OverrideDamage, attack, attack, target, hitIndex, &damage);
PKMN_HOOK(OverrideIncomingDamage, target, attack, target, hitIndex, &damage);
return damage;
}
uint8_t PkmnLib::Battling::DamageLibrary::GetBasePower(CreatureLib::Battling::ExecutingAttack* attack,