We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09f9656 commit 82e6ffaCopy full SHA for 82e6ffa
1 file changed
deathcause.rb
@@ -19,18 +19,17 @@ def display_death_event(e)
19
end
20
21
def display_death_unit(u)
22
+ str = "The #{u.race_tg.name[0]}"
23
+ str << " #{u.name}" if u.name.has_name
24
+
25
if not u.flags2.killed and not u.flags3.ghostly
- str = "The #{u.race_tg.name[0]}"
- str << " #{u.name}" if u.name.has_name
26
str << " is not dead yet !"
27
28
puts str.chomp(',')
29
else
30
death_info = u.counters.death_tg
31
killer = death_info.killer_tg if death_info
32
33
34
str << " died"
35
str << " in year #{death_info.event_year}" if death_info
36
str << " (cause: #{u.counters.death_cause.to_s.downcase})," if u.counters.death_cause != -1
0 commit comments