Adds OverrideBasePower script hook.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-08-24 20:28:27 +02:00
parent 7fcc4a63c5
commit 0eb2cb0ed0
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ uint8_t PkmnLib::Battling::DamageLibrary::GetBasePower(CreatureLib::Battling::Ex
[[maybe_unused]] uint8_t hitIndex,
[[maybe_unused]] const HitData& hitData) const {
auto bp = attack->GetUseAttack()->GetBasePower();
// HOOK: modify base power.
PKMN_HOOK(OverrideBasePower, attack, attack, target, hitIndex, &bp);
return bp;
}
float PkmnLib::Battling::DamageLibrary::GetStatModifier(CreatureLib::Battling::ExecutingAttack* attack,