Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed SUNITDMG_ExecuteEvents life/mana leech (left shift vs right shift) #146

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/D2Game/src/UNIT/SUnitDmg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1251,8 +1251,8 @@ void __fastcall SUNITDMG_ExecuteEvents(D2GameStrc* pGame, D2UnitStrc* pAttacker,
const int32_t nMana = STATLIST_UnitGetStatValue(pDefender, STAT_MANA, 0);
const int32_t nStamina = STATLIST_UnitGetStatValue(pDefender, STAT_STAMINA, 0);

pDamage->dwLifeLeech <<= 6;
pDamage->dwManaLeech <<= 6;
pDamage->dwLifeLeech >>= 6;
pDamage->dwManaLeech >>= 6;

const int32_t nLifeLeech = std::min(pDamage->dwLifeLeech, pDamage->dwPhysDamage);
const int32_t nManaLeech = std::min(pDamage->dwManaLeech, nMana);
Expand Down
Loading