Fixed server not always sending the correct level values to the client.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11963 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
3d545fd51a
commit
e0611bf8b5
@ -738,10 +738,11 @@ void clif_get_weapon_view(struct map_session_data* sd, unsigned short *rhand, un
|
|||||||
//To make the assignation of the level based on limits clearer/easier. [Skotlex]
|
//To make the assignation of the level based on limits clearer/easier. [Skotlex]
|
||||||
static int clif_setlevel(int lv)
|
static int clif_setlevel(int lv)
|
||||||
{
|
{
|
||||||
lv = cap_value(lv, 0, battle_config.max_lv);
|
if( lv < battle_config.max_lv )
|
||||||
if( lv == battle_config.max_lv && lv < battle_config.aura_lv )
|
return lv;
|
||||||
lv = battle_config.max_lv - 1;
|
if( lv < battle_config.aura_lv )
|
||||||
return lv;
|
return battle_config.max_lv - 1;
|
||||||
|
return battle_config.max_lv;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*==========================================
|
/*==========================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user