Skip to content

Commit

Permalink
fix(zc): lift glove 'disable item use' not stopping sword SFX from pl…
Browse files Browse the repository at this point in the history
…aying
  • Loading branch information
EmilyV99 authored and connorjclark committed Jan 7, 2024
1 parent 02cf822 commit 3e6fe6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/zc/hero.cpp
Expand Up @@ -13067,6 +13067,8 @@ bool HeroClass::doattack()

bool HeroClass::can_attack()
{
if(lift_wpn && (liftflags & LIFTFL_DIS_ITEMS))
return false;
int32_t currentSwordOrWand = (itemsbuf[dowpn].family == itype_wand || itemsbuf[dowpn].family == itype_sword)?dowpn:-1;
if(action==hopping || action==swimming || action==freeze || action==sideswimfreeze
|| lstunclock > 0 || is_conveyor_stunned || spins>0 || usingActiveShield()
Expand Down

0 comments on commit 3e6fe6e

Please sign in to comment.