Adds OnIncomingHit script 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:
@@ -255,6 +255,7 @@ void TurnHandler::HandleAttackForTarget(ExecutingAttack* attack, const ArbUt::Bo
|
||||
}
|
||||
if (damage > 0) {
|
||||
target->Damage(damage, DamageSource::AttackDamage);
|
||||
HOOK(OnIncomingHit, target, attack, target.GetRaw(), hitIndex);
|
||||
|
||||
if (attackData->HasSecondaryEffect() && !user->IsFainted()) {
|
||||
bool preventSecondary = false;
|
||||
|
||||
Reference in New Issue
Block a user