Fixed compile error in OnAfterHits script hook.
This commit is contained in:
parent
658672a246
commit
aca3359c98
|
@ -148,6 +148,6 @@ void TurnHandler::HandleAttackForTarget(ExecutingAttack &attack, Creature *targe
|
|||
}
|
||||
|
||||
if (!user->IsFainted())
|
||||
HOOK(OnAfterHits, userSources, attack, target);
|
||||
HOOK(OnAfterHits, userSources, &attack, target);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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){};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue