Adds OverrideBasePower script hook.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7fcc4a63c5
commit
0eb2cb0ed0
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue