From 0d37151858e6059b8690222912ebc23b1f84d669 Mon Sep 17 00:00:00 2001 From: gumi Date: Sun, 28 Jan 2018 10:24:31 -0500 Subject: make the player stand while attacking with overrides --- src/map/script-fun.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 target = map_id2bl(wrap(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(), -- cgit v1.2.3-60-g2f50