Logs slime attacks correctly

Fixes slime attacks being logged in reverse. I.e., a slime attacking a human would be logged as the human sliming the slime.
This commit is contained in:
TheSardele
2019-11-04 20:05:37 +01:00
parent 8b9f663203
commit 80bd63d313
2 changed files with 2 additions and 2 deletions
@@ -79,5 +79,5 @@ In all, this is a lot like the monkey code. /N
if(M.is_adult)
damage = rand(10, 40)
adjustBruteLoss(damage)
add_attack_logs(src, M, "Slime'd for [damage] damage")
add_attack_logs(M, src, "Slime'd for [damage] damage")
updatehealth("slime attack")
+1 -1
View File
@@ -296,7 +296,7 @@
return FALSE
if(stat != DEAD)
add_attack_logs(src, M, "Slime'd")
add_attack_logs(M, src, "Slime'd")
M.do_attack_animation(src)
visible_message("<span class='danger'>\The [M.name] glomps [src]!</span>", "<span class='userdanger'>\The [M.name] glomps you!</span>")
return TRUE