diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-15 11:41:40 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-15 11:41:40 +0000 |
commit | abfbf381c18d4c17e9594e7e3b903405c20e9f7f (patch) | |
tree | 67bdc8b45f716bd6f3a2b68433337e094b448662 /src/map/pc.c | |
parent | c0f2069689110d1df816d52e36d049d4b97a7a22 (diff) | |
download | hercules-abfbf381c18d4c17e9594e7e3b903405c20e9f7f.tar.gz hercules-abfbf381c18d4c17e9594e7e3b903405c20e9f7f.tar.bz2 hercules-abfbf381c18d4c17e9594e7e3b903405c20e9f7f.tar.xz hercules-abfbf381c18d4c17e9594e7e3b903405c20e9f7f.zip |
Cleaning/fixing the previous commits a bit
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13775 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index d7c2013c3..16e32d7d3 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5206,9 +5206,10 @@ int pc_resethate(struct map_session_data* sd) int pc_skillatk_bonus(struct map_session_data *sd, int skill_num) { int i, bonus = 0; - ARR_FIND(0, ARRAYLENGTH(sd->skillatk), i, !sd->skillatk[i].id || sd->skillatk[i].id == skill_num); - if( i < ARRAYLENGTH(sd->skillatk) && sd->skillatk[i].id ) - bonus = sd->skillatk[i].val; + + ARR_FIND(0, ARRAYLENGTH(sd->skillatk), i, sd->skillatk[i].id == skill_num); + if( i < ARRAYLENGTH(sd->skillatk) ) bonus = sd->skillatk[i].val; + if( sd->sc.data[SC_SKILLATKBONUS] ) { if( sd->sc.data[SC_SKILLATKBONUS]->val1 && sd->sc.data[SC_SKILLATKBONUS]->val1 == skill_num ) |