summaryrefslogtreecommitdiff
path: root/src/content_sao.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/content_sao.cpp')
-rw-r--r--src/content_sao.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp
index 02a4eb1eb..568e4b1da 100644
--- a/src/content_sao.cpp
+++ b/src/content_sao.cpp
@@ -563,11 +563,11 @@ int LuaEntitySAO::punch(v3f dir,
if(result.did_punch)
{
+ setHP(getHP() - result.damage);
+
actionstream<<getDescription()<<" punched by "
<<puncher->getDescription()<<", damage "<<result.damage
- <<" HP"<<std::endl;
-
- setHP(getHP() - result.damage);
+ <<" hp, health now "<<getHP()<<" hp"<<std::endl;
{
std::ostringstream os(std::ios::binary);