From 96d1b6251ffc74b09d18491c9d990e43a1082c71 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 9 Nov 2019 13:09:39 +0100 Subject: [PATCH] Implements OnSecondaryEffect script hook --- src/Battling/Flow/TurnHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Battling/Flow/TurnHandler.cpp b/src/Battling/Flow/TurnHandler.cpp index e3891e2..e65e438 100644 --- a/src/Battling/Flow/TurnHandler.cpp +++ b/src/Battling/Flow/TurnHandler.cpp @@ -141,13 +141,13 @@ void TurnHandler::HandleAttackForTarget(ExecutingAttack &attack, Creature *targe bool preventSecondary = false; HOOK(PreventSecondaryEffects, targetSources, &attack, target, hitIndex, preventSecondary); if (!preventSecondary){ - //HOOK: On Move Hit + HOOK(OnSecondaryEffect, attackSource, &attack, target, hitIndex); } } } } - if (!user->IsFainted()) + if (!user->IsFainted()){ HOOK(OnAfterHits, userSources, &attack, target); } }