Fixed a bug with autocast max_count checking, super special thanks to calciumkid
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15447 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
a2c0d00a9b
commit
cb87b0ddfc
@ -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--;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user