diff options
author | gumi <git@gumi.ca> | 2018-01-28 10:24:31 -0500 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-01-28 10:24:31 -0500 |
commit | 0d37151858e6059b8690222912ebc23b1f84d669 (patch) | |
tree | 517920bdf49103b02815489129bc588ca8208647 | |
parent | c066e21cf7bba2309800b7ab913da77ad6fddd0e (diff) | |
download | tmwa-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.cpp | 3 |
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(), |