summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-05-11 00:31:05 +0200
committerHaru <haru@dotalux.com>2015-05-11 00:31:05 +0200
commit964dcdc3c3009ad33eb91b2e6649368a74af0d6f (patch)
treec13fc94e570e66ef4addf01689db353203adbbb1 /src/map
parent8e8e278a055e781c62ed4c55ff296f4fb4201feb (diff)
downloadhercules-964dcdc3c3009ad33eb91b2e6649368a74af0d6f.tar.gz
hercules-964dcdc3c3009ad33eb91b2e6649368a74af0d6f.tar.bz2
hercules-964dcdc3c3009ad33eb91b2e6649368a74af0d6f.tar.xz
hercules-964dcdc3c3009ad33eb91b2e6649368a74af0d6f.zip
Fixed SC_BERSERK not starting SC_ENDURE
- Issue present since cf56f7c9 (seemingly unintended edit of a condition in status_change_start). - Special thanks to MordekaiserGod. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 6e4090580..018647459 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -8014,7 +8014,7 @@ int status_change_start(struct block_list *src, struct block_list *bl, enum sc_t
case SC_BERSERK:
if( val3 == SC__BLOODYLUST )
sc_start(src,bl,(sc_type)val3,100,val1,tick);
- if( !val3 && !(!sc->data[SC_ENDURE] || !sc->data[SC_ENDURE]->val4) )
+ if (!val3 && (!sc->data[SC_ENDURE] || !sc->data[SC_ENDURE]->val4))
sc_start4(src, bl, SC_ENDURE, 100,10,0,0,2, tick);
//HP healing is performing after the calc_status call.
//Val2 holds HP penalty