Make combat feel 100x better with this one simple trick (#8231)
This commit is contained in:
@@ -192,7 +192,9 @@ namespace Content.Shared.Interaction
|
||||
// TODO COMBAT Consider using alt-interact for advanced combat? maybe alt-interact disarms?
|
||||
if (!altInteract && TryComp(user, out SharedCombatModeComponent? combatMode) && combatMode.IsInCombatMode)
|
||||
{
|
||||
DoAttack(user, coordinates, false, target);
|
||||
// Wide attack if there isn't a target or the target is out of range, click attack otherwise.
|
||||
var shouldWideAttack = target == null || !InRangeUnobstructed(user, target.Value);
|
||||
DoAttack(user, coordinates, shouldWideAttack, target);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user