Skip to content

Commit

Permalink
Cleanup CurrentHitDirection after table update (improves issue #28).
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheep-y committed Dec 21, 2018
1 parent af09c56 commit 8d5ebe9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion AttackImprovementMod/src/modules/HitLocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@ public static void RecordHitDirection ( AttackDirection from ) {

public static void PrefixMechCalledShot ( ref Dictionary<ArmorLocation, int> hitTable, ArmorLocation bonusLocation, ref float bonusLocationMultiplier ) { try {
bonusLocationMultiplier = FixMultiplier( bonusLocation, bonusLocationMultiplier );
if ( Settings.CalledShotUseClustering && bonusLocation != ArmorLocation.None && CurrentHitDirection != AttackDirection.None )
if ( Settings.CalledShotUseClustering && bonusLocation != ArmorLocation.None && CurrentHitDirection != AttackDirection.None ) {
hitTable = CombatConstants.GetMechClusterTable( bonusLocation, CurrentHitDirection );
CurrentHitDirection = AttackDirection.None;
}
} catch ( Exception ex ) { Error( ex ); } }

private static int head;
Expand Down

0 comments on commit 8d5ebe9

Please sign in to comment.