Skip to content

Commit

Permalink
fix: void charm call wrong function (#3389)
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Feb 21, 2025
1 parent d8b767e commit a87520b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7742,7 +7742,7 @@ void Game::applyManaLeech(
// Void charm rune
if (targetMonster) {
if (uint16_t playerCharmRaceidVoid = attackerPlayer->parseRacebyCharm(CHARM_VOID, false, 0);
playerCharmRaceidVoid != 0 && playerCharmRaceidVoid == targetMonster->getRace()) {
playerCharmRaceidVoid != 0 && playerCharmRaceidVoid == targetMonster->getRaceId()) {
if (const auto charm = g_iobestiary().getBestiaryCharm(CHARM_VOID)) {
manaSkill += charm->percent;
}
Expand Down

0 comments on commit a87520b

Please sign in to comment.