diff --git a/src/creatures/combat/condition.cpp b/src/creatures/combat/condition.cpp index da90b03f65a..b35141d5440 100644 --- a/src/creatures/combat/condition.cpp +++ b/src/creatures/combat/condition.cpp @@ -1270,7 +1270,10 @@ bool ConditionRegeneration::executeCondition(const std::shared_ptr &cr const auto &player = creature->getPlayer(); int32_t dailyStreak = 0; if (player) { - dailyStreak = static_cast(player->kv()->scoped("daily-reward")->get("streak")->getNumber()); + auto optStreak = player->kv()->scoped("daily-reward")->get("streak"); + if (optStreak) { + dailyStreak = static_cast(optStreak->getNumber()); + } } if (creature->getZoneType() != ZONE_PROTECTION || dailyStreak >= DAILY_REWARD_HP_REGENERATION) { if (internalHealthTicks >= getHealthTicks(creature)) {