Skip to content

Commit

Permalink
fix: removed error message 'monster with name not exist' in console (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel authored Mar 21, 2024
1 parent 9859dc0 commit 198f79b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/creatures/combat/combat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2131,7 +2131,7 @@ void Combat::applyExtensions(std::shared_ptr<Creature> caster, std::shared_ptr<C
if (player) {
chance = player->getSkillLevel(SKILL_CRITICAL_HIT_CHANCE);
bonus = player->getSkillLevel(SKILL_CRITICAL_HIT_DAMAGE);
if (target) {
if (target && target->getMonster()) {
uint16_t playerCharmRaceid = player->parseRacebyCharm(CHARM_LOW, false, 0);
if (playerCharmRaceid != 0) {
const auto mType = g_monsters().getMonsterType(target->getName());
Expand Down

0 comments on commit 198f79b

Please sign in to comment.