Skip to content

Commit

Permalink
avoid blocking with shield packets flood (#1838)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeylonSantana committed Aug 14, 2023
1 parent 34cc790 commit 732fc14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Intersect.Client/Entities/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1506,8 +1506,8 @@ public bool TryBlock()
var shieldIndex = Options.ShieldIndex;
var myShieldIndex = MyEquipment[shieldIndex];

// Return false if character is attacking or if they don't have a shield equipped.
if (IsAttacking || shieldIndex < 0 || myShieldIndex < 0)
// Return false if character is attacking, or blocking or if they don't have a shield equipped.
if (IsAttacking || IsBlocking || shieldIndex < 0 || myShieldIndex < 0)
{
return false;
}
Expand Down

0 comments on commit 732fc14

Please sign in to comment.