[Bug Fix] Fix Issue with Bot Dual wield (#4037)

# Notes
- Bots were using primary weapons even for dual wield attacks so they were never attacking with their secondary even when they should be.
This commit is contained in:
Alex King 2024-02-01 05:26:25 -05:00 committed by GitHub
parent 7c982df0e3
commit 490ed50c9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1504,7 +1504,7 @@ bool Mob::Attack(Mob* other, int Hand, bool bRiposte, bool IsStrikethrough, bool
}
if (Hand == EQ::invslot::slotSecondary) {
weapon = (IsClient()) ? GetInv().GetItem(EQ::invslot::slotSecondary) : CastToBot()->GetBotItem(EQ::invslot::slotPrimary);
weapon = (IsClient()) ? GetInv().GetItem(EQ::invslot::slotSecondary) : CastToBot()->GetBotItem(EQ::invslot::slotSecondary);
OffHandAtk(true);
}
else {