Fixed compile error in OnAfterHits script hook.

This commit is contained in:
Deukhoofd 2019-11-09 12:57:12 +01:00
parent 658672a246
commit aca3359c98
2 changed files with 2 additions and 2 deletions

View File

@ -148,6 +148,6 @@ void TurnHandler::HandleAttackForTarget(ExecutingAttack &attack, Creature *targe
}
if (!user->IsFainted())
HOOK(OnAfterHits, userSources, attack, target);
HOOK(OnAfterHits, userSources, &attack, target);
}
}

View File

@ -31,7 +31,7 @@ namespace CreatureLib::Battling{
virtual void PreventSecondaryEffects(const ExecutingAttack* attack, Creature* target, uint8_t hitNumber, bool& result){};
virtual void OnSecondaryEffect(const ExecutingAttack* attack, Creature* target, uint8_t hitNumber){};
virtual void OnAfterHits(const ExecutingAttack* attack, Creature* target);
virtual void OnAfterHits(const ExecutingAttack* attack, Creature* target){};
};
}