Implements OnSecondaryEffect script hook

This commit is contained in:
Deukhoofd 2019-11-09 13:09:39 +01:00
parent aca3359c98
commit 96d1b6251f
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}