Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions system/scripts/zone/core/calc_combat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,16 +387,6 @@ public float SCR_AttackTypeMultiplier(ICombatEntity attacker, ICombatEntity targ
var attackType = skill.Data.AttackType;
var targetArmor = target.ArmorMaterial;

// Use the right-hand weapon's attack type if a weapon is equipped.
// This doesn't necessarily take into account off-hand attacks,
// but it's currently unclear if/how those would be handled.
if (attacker.Components.TryGet<InventoryComponent>(out var inventory))
{
var rhItem = inventory.GetEquip(EquipSlot.RightHand);
if (rhItem is not DummyEquipItem)
attackType = rhItem.Data.AttackType;
}

if (Feature.IsEnabled("AttackTypeBonusRevamp2"))
{
if (attackType == SkillAttackType.Slash)
Expand Down