diff options
author | shennetsind <ind@henn.et> | 2014-03-16 12:58:02 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-03-16 12:58:02 -0300 |
commit | 4fe6f657e682b9c722b15346f31ec3fe0298b9d9 (patch) | |
tree | e2bae58431dc810b02552dc01af21922109606fd /src | |
parent | 26bc0cf56b4867fab222a15de18ac43ff799b9e8 (diff) | |
download | hercules-4fe6f657e682b9c722b15346f31ec3fe0298b9d9.tar.gz hercules-4fe6f657e682b9c722b15346f31ec3fe0298b9d9.tar.bz2 hercules-4fe6f657e682b9c722b15346f31ec3fe0298b9d9.tar.xz hercules-4fe6f657e682b9c722b15346f31ec3fe0298b9d9.zip |
Fixed Bug 8095
Mounting SC_ALL_RIDING (new mounts) now causes character to stop attacking.
Special Thanks to bgamez23
http://hercules.ws/board/tracker/issue-8095-ridding-mount2-can-attack/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r-- | src/map/status.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c index 46f6d265d..d3af72e57 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -7881,8 +7881,6 @@ int status_change_start(struct block_list *src, struct block_list *bl, enum sc_t case SC_TURNKICK_READY: case SC_DODGE_READY: case SC_PUSH_CART: - case SC_ALL_RIDING: - tick = -1; break; case SC_AUTOGUARD: @@ -8971,6 +8969,10 @@ int status_change_start(struct block_list *src, struct block_list *bl, enum sc_t if( !mob->db_checkid(val1) ) val1 = 1002; // default poring break; + case SC_ALL_RIDING: + unit->stop_attack(bl); + tick = -1; + break; default: if( calc_flag == SCB_NONE && status->SkillChangeTable[type] == 0 && status->IconChangeTable[type] == 0 ) { //Status change with no calc, no icon, and no skill associated...? |