Skip to content

Commit

Permalink
fix(zc): active shields interacting with light beams while inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyV99 committed May 3, 2024
1 parent ae1c890 commit 7e52830
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/zc/hero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23187,6 +23187,8 @@ void HeroClass::handleSpotlights()
std::map<int32_t, spot_t*> maps;
std::map<int32_t, std::map<dword, spot_t>> ffmaps;
int32_t shieldid = getCurrentShield(false);
if((itemsbuf[shieldid].flags & ITEM_FLAG9) && !usingActiveShield(shieldid))
shieldid = -1;
bool refl = shieldid > -1 && (itemsbuf[shieldid].misc2 & shLIGHTBEAM);
bool block = !refl && shieldid > -1 && (itemsbuf[shieldid].misc1 & shLIGHTBEAM);
heropos = COMBOPOS_B(x.getInt()+8,y.getInt()+8);
Expand Down

0 comments on commit 7e52830

Please sign in to comment.