* Fixed bAutoSpellOnSkill bonuses not working independently of each other (bugreport:4617, since r13596, related r14536).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14574 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
e560ba458b
commit
f27307a8cf
@ -1,6 +1,7 @@
|
|||||||
Date Added
|
Date Added
|
||||||
|
|
||||||
2010/12/10
|
2010/12/10
|
||||||
|
* Fixed bAutoSpellOnSkill bonuses not working independently of each other (bugreport:4617, since r13596, related r14536). [Ai4rei]
|
||||||
* Revised argument declaration of all script commands according to the actual functions' argument usage. [Ai4rei]
|
* Revised argument declaration of all script commands according to the actual functions' argument usage. [Ai4rei]
|
||||||
- Fixed many script commands with fixed amount of optional parameters to no longer accept any amount of arguments due to faulty declaration.
|
- Fixed many script commands with fixed amount of optional parameters to no longer accept any amount of arguments due to faulty declaration.
|
||||||
- Corrected use of dummy parameter for guildopenstorage in scripts.
|
- Corrected use of dummy parameter for guildopenstorage in scripts.
|
||||||
|
@ -1500,13 +1500,7 @@ static int pc_bonus_autospell_onskill(struct s_autospell *spell, int max, short
|
|||||||
|
|
||||||
for( i = 0; i < max && spell[i].id; i++ )
|
for( i = 0; i < max && spell[i].id; i++ )
|
||||||
{
|
{
|
||||||
if( spell[i].flag == src_skill && spell[i].id == id && spell[i].lv == lv && (spell[i].card_id == card_id || spell[i].rate <= 0 || rate < 0) )
|
; // each autospell works independently
|
||||||
{
|
|
||||||
if( !battle_config.autospell_stacking && spell[i].rate > 0 && rate > 0 )
|
|
||||||
return 0;
|
|
||||||
rate += spell[i].rate;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( i == max )
|
if( i == max )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user