summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-14 09:33:11 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-14 09:33:11 +0000
commit964f8b66abe130ca1e8864ed6bb1bc862aa2ed63 (patch)
treef069923c68f0f31da207095de6873d97712b9c87 /src/map
parent5d74a6eb814877732086b98df293b513d5a91e96 (diff)
downloadhercules-964f8b66abe130ca1e8864ed6bb1bc862aa2ed63.tar.gz
hercules-964f8b66abe130ca1e8864ed6bb1bc862aa2ed63.tar.bz2
hercules-964f8b66abe130ca1e8864ed6bb1bc862aa2ed63.tar.xz
hercules-964f8b66abe130ca1e8864ed6bb1bc862aa2ed63.zip
Fixed a bug with autocast max_count checking, super special thanks to calciumkid
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15447 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/skill.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 33e4d24f9..74adf02b6 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1288,7 +1288,7 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int
(maxcount = skill_get_maxcount(skill, skilllv)) > 0
) {
int v;
- for(v=0;v<MAX_SKILLUNITGROUP && sd->ud.skillunit[v] && maxcount;i++) {
+ for(v=0;v<MAX_SKILLUNITGROUP && sd->ud.skillunit[v] && maxcount;v++) {
if(sd->ud.skillunit[v]->skill_id == skill)
maxcount--;
}
@@ -1421,7 +1421,7 @@ int skill_onskillusage(struct map_session_data *sd, struct block_list *bl, int s
(maxcount = skill_get_maxcount(skill, skilllv)) > 0
) {
int v;
- for(v=0;v<MAX_SKILLUNITGROUP && sd->ud.skillunit[v] && maxcount;i++) {
+ for(v=0;v<MAX_SKILLUNITGROUP && sd->ud.skillunit[v] && maxcount;v++) {
if(sd->ud.skillunit[v]->skill_id == skill)
maxcount--;
}
@@ -1624,7 +1624,7 @@ int skill_counter_additional_effect (struct block_list* src, struct block_list *
(maxcount = skill_get_maxcount(skillid, skilllv)) > 0
) {
int v;
- for(v=0;v<MAX_SKILLUNITGROUP && dstsd->ud.skillunit[v] && maxcount;i++) {
+ for(v=0;v<MAX_SKILLUNITGROUP && dstsd->ud.skillunit[v] && maxcount;v++) {
if(dstsd->ud.skillunit[v]->skill_id == skillid)
maxcount--;
}