summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-07 19:42:47 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-07 19:42:47 +0000
commit79b7a40abaf1b4855cd3c828d96f61dd71750814 (patch)
tree12b89028afd37ff8900606207be5ad0e631569d6 /src/map/status.c
parent7332d10a5961e767091639e9666e2594834fc4d1 (diff)
downloadhercules-79b7a40abaf1b4855cd3c828d96f61dd71750814.tar.gz
hercules-79b7a40abaf1b4855cd3c828d96f61dd71750814.tar.bz2
hercules-79b7a40abaf1b4855cd3c828d96f61dd71750814.tar.xz
hercules-79b7a40abaf1b4855cd3c828d96f61dd71750814.zip
- Status_calc_bl will no longer stop you from attacking/walking when the mode is changed unless the new mode no longer includes "can-attack"/"can-move" respectively.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7575 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index bce2fd246..4b8a9f9f2 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2648,8 +2648,10 @@ void status_calc_bl(struct block_list *bl, unsigned long flag)
{
status->mode = status_calc_mode(bl, sc, b_status->mode);
//Since mode changed, reset their state.
- unit_stop_attack(bl);
- unit_stop_walking(bl,0);
+ if (!(status->mode&MD_CANATTACK))
+ unit_stop_attack(bl);
+ if (!(status->mode&MD_CANMOVE))
+ unit_stop_walking(bl,0);
}
// No status changes alter these yet.