diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/monster_spawn_combat.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/monster_spawn_combat.rb b/app/models/monster_spawn_combat.rb index 08fe0f2..8dbd8e8 100644 --- a/app/models/monster_spawn_combat.rb +++ b/app/models/monster_spawn_combat.rb @@ -84,8 +84,9 @@ class MonsterSpawnCombat < ApplicationRecord character_damage[character] = MonsterSpawnCombat.where(monster_spawn: monster_spawn, character: character).sum(:hp_lost) end title_recipient = character_damage.max_by { |_, v| v }[0] - title_recipient.award_title("sentinel") - message_body_parts[title_recipient.id].push("You earned the Sentinel title!") + if title_recipient.award_title("sentinel") + message_body_parts[title_recipient.id].push("You earned the Sentinel title!") + end message_body_parts.each do |character_id, body_parts| if body_parts.any? |