Browse Source

Clean up StartRangeAttack() (#7207)

pull/7334/head
Eric Robinson 2 years ago committed by GitHub
parent
commit
cec258fd4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      Source/player.cpp

6
Source/player.cpp

@ -211,11 +211,13 @@ void StartRangeAttack(Player &player, Direction d, WorldTileCoord cx, WorldTileC
}
int8_t skippedAnimationFrames = 0;
const auto flags = player._pIFlags;
if (!gbIsHellfire) {
if (includesFirstFrame && HasAnyOf(player._pIFlags, ItemSpecialEffect::QuickAttack | ItemSpecialEffect::FastAttack)) {
if (includesFirstFrame && HasAnyOf(flags, ItemSpecialEffect::QuickAttack | ItemSpecialEffect::FastAttack)) {
skippedAnimationFrames += 1;
}
if (HasAnyOf(player._pIFlags, ItemSpecialEffect::FastAttack)) {
if (HasAnyOf(flags, ItemSpecialEffect::FastAttack)) {
skippedAnimationFrames += 1;
}
}

Loading…
Cancel
Save