summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-01-28 10:24:31 -0500
committergumi <git@gumi.ca>2018-01-28 10:24:31 -0500
commit0d37151858e6059b8690222912ebc23b1f84d669 (patch)
tree517920bdf49103b02815489129bc588ca8208647
parentc066e21cf7bba2309800b7ab913da77ad6fddd0e (diff)
downloadtmwa-0d37151858e6059b8690222912ebc23b1f84d669.tar.gz
tmwa-0d37151858e6059b8690222912ebc23b1f84d669.tar.bz2
tmwa-0d37151858e6059b8690222912ebc23b1f84d669.tar.xz
tmwa-0d37151858e6059b8690222912ebc23b1f84d669.zip
make the player stand while attacking with overrides
-rw-r--r--src/map/script-fun.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp
index cf0b985..4fc2414 100644
--- a/src/map/script-fun.cpp
+++ b/src/map/script-fun.cpp
@@ -757,6 +757,9 @@ void builtin_injure(ScriptState *st)
dumb_ptr<block_list> target = map_id2bl(wrap<BlockId>(conv_num(st, &AARG(1))));
int damage_caused = conv_num(st, &AARG(2));
+ if (source != nullptr && source->bl_type == BL::PC)
+ pc_setstand(source->is_player());
+
// display damage first, because dealing damage may deallocate the target.
clif_damage(source, target,
gettick(), interval_t::zero(), interval_t::zero(),