Follow up to 9db667c (BSS fixed)
* Simplified the check (no need to check for ensemble and Adoramus separately) * Fixed PR_BENEDICTIO not working at all * Fixed chorus skills and WZ_COMET only counting to 1 rather than MAX_PARTY
This commit is contained in:
parent
6ebcb67601
commit
5d7d994ca0
@ -14168,15 +14168,13 @@ int skill_check_condition_char_sub (struct block_list *bl, va_list ap)
|
|||||||
skill_id = va_arg(ap,int);
|
skill_id = va_arg(ap,int);
|
||||||
inf2 = skill_get_inf2(skill_id);
|
inf2 = skill_get_inf2(skill_id);
|
||||||
|
|
||||||
if (skill_id == PR_BENEDICTIO && *c >= 2) // Check for two companions for Benedictio. [Skotlex]
|
if (skill_id == PR_BENEDICTIO)
|
||||||
return 0;
|
if(*c >= 2) // Check for two companions for Benedictio. [Skotlex]
|
||||||
else if (skill_id == AB_ADORAMUS && *c >= 1) // Check for a partner for Adoramus.
|
return 0;
|
||||||
return 0;
|
else if ((inf2&INF2_CHORUS_SKILL || skill_id == WL_COMET))
|
||||||
else if (inf2&INF2_ENSEMBLE_SKILL && *c >= 1) // Check for a partner for ensembles.
|
if(*c == MAX_PARTY) // Check for partners for Chorus or Comet; Cap if the entire party is accounted for.
|
||||||
return 0;
|
return 0;
|
||||||
else if ((inf2&INF2_CHORUS_SKILL || skill_id == WL_COMET) && *c == MAX_PARTY) // Check for partners for Chorus or Comet; Cap if the entire party is accounted for.
|
else if (*c >= 1) // Check for one companion for all other cases.
|
||||||
return 0;
|
|
||||||
else if (*c >= 1) // Check for all other cases.
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (bl == src)
|
if (bl == src)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user