summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorprotimus <protimus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-08 03:26:16 +0000
committerprotimus <protimus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-08 03:26:16 +0000
commitefdd0ca8f32811f6d7fc78555a0afcdfad308ca8 (patch)
tree608d7babab1c68c7947c3f0adc8a0a3b07b5d2d5 /src/map/battle.c
parent6ba747880532b4278fed801896216146ac63a90d (diff)
downloadhercules-efdd0ca8f32811f6d7fc78555a0afcdfad308ca8.tar.gz
hercules-efdd0ca8f32811f6d7fc78555a0afcdfad308ca8.tar.bz2
hercules-efdd0ca8f32811f6d7fc78555a0afcdfad308ca8.tar.xz
hercules-efdd0ca8f32811f6d7fc78555a0afcdfad308ca8.zip
Fixed Cloaking Exceed.
- Stop hiding status when use skills or attack enemies. - Added security fixes to clear hiding status in some cases, like warped and reloging. - Updated walk speed formula. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15408 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index c3d22a489..c31058047 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3778,6 +3778,9 @@ enum damage_lv battle_weapon_attack(struct block_list* src, struct block_list* t
if (sc && sc->data[SC_CLOAKING] && !(sc->data[SC_CLOAKING]->val4&2))
status_change_end(src, SC_CLOAKING, INVALID_TIMER);
+
+ if (sc && sc->data[SC_CLOAKINGEXCEED] && !(sc->data[SC_CLOAKINGEXCEED]->val4&2))
+ status_change_end(src, SC_CLOAKINGEXCEED, INVALID_TIMER);
if( tsc && tsc->data[SC_AUTOCOUNTER] && status_check_skilluse(target, src, KN_AUTOCOUNTER, 1) )
{