diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-08-29 19:32:22 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-08-29 19:32:22 +0000 |
commit | fc2b20eedb4e70faa6fdd80a79606521bc227437 (patch) | |
tree | e47867056f3111cedc0a1c99fe3994e6140e8a4e /src/map | |
parent | 4eb0c37f3c4c9bc545a37afcbfdd0493df29de28 (diff) | |
download | hercules-fc2b20eedb4e70faa6fdd80a79606521bc227437.tar.gz hercules-fc2b20eedb4e70faa6fdd80a79606521bc227437.tar.bz2 hercules-fc2b20eedb4e70faa6fdd80a79606521bc227437.tar.xz hercules-fc2b20eedb4e70faa6fdd80a79606521bc227437.zip |
- oops, fixed bSkillHeal raising bSkillAtk instead
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11086 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/pc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 85ad38115..e564c3554 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2225,17 +2225,17 @@ int pc_bonus2(struct map_session_data *sd,int type,int type2,int val) case SP_SKILL_HEAL: if(sd->state.lr_flag == 2) break; - for (i = 0; i < ARRAYLENGTH(sd->skillatk) && sd->skillatk[i].id != 0 && sd->skillatk[i].id != type2; i++); - if (i == ARRAYLENGTH(sd->skillatk)) + for (i = 0; i < ARRAYLENGTH(sd->skillheal) && sd->skillheal[i].id != 0 && sd->skillheal[i].id != type2; i++); + if (i == ARRAYLENGTH(sd->skillheal)) { //Better mention this so the array length can be updated. [Skotlex] - ShowDebug("run_script: bonus2 bSkillAtk reached it's limit (%d skills per character), bonus skill %d (+%d%%) lost.\n", ARRAYLENGTH(sd->skillatk), type2, val); + ShowDebug("run_script: bonus2 bSkillHeal reached it's limit (%d skills per character), bonus skill %d (+%d%%) lost.\n", ARRAYLENGTH(sd->skillheal), type2, val); break; } - if (sd->skillatk[i].id == type2) - sd->skillatk[i].val += val; + if (sd->skillheal[i].id == type2) + sd->skillheal[i].val += val; else { - sd->skillatk[i].id = type2; - sd->skillatk[i].val = val; + sd->skillheal[i].id = type2; + sd->skillheal[i].val = val; } break; case SP_ADD_SKILL_BLOW: |