static bool Prefix(ContextActionBreakFree __instance)
 {
     if (Target != null)
     {
         CombatManeuverProvokeAttack.DoNotTriggerAoOForNextCombatManeuver(Target.Unit);
     }
     return(true);
 }
 public override void RunAction()
 {
     Main.Logger?.Write($"ContextActionCombatManeuverCTT.RunAction, DoNotProvokeAoO = {DoNotProvokeAoO}");
     if (DoNotProvokeAoO && Context.MaybeCaster != null)
     {
         Main.Logger?.Write($"ContextActionCombatManeuverCTT.RunAction, no AoO for {Context.MaybeCaster?.CharacterName}");
         CombatManeuverProvokeAttack.DoNotTriggerAoOForNextCombatManeuver(Context.MaybeCaster);
     }
     base.RunAction();
 }
Example #3
0
 static bool Prefix(ManeuverOnAttack __instance, RuleAttackWithWeapon evt)
 {
     CombatManeuverProvokeAttack.DoNotTriggerAoOForNextCombatManeuver(evt.Initiator);
     return(true);
 }