Implements OnSecondaryEffect script hook
This commit is contained in:
parent
aca3359c98
commit
96d1b6251f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue