- Fixed a bug in de-adopt code (parent skills need to be removed).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12555 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
7a04bbfed2
commit
1c7cf5aa3e
@ -892,6 +892,7 @@ int chrif_deadopt(int father_id, int mother_id, int child_id)
|
||||
if( father_id && (sd = map_charid2sd(father_id)) != NULL && sd->status.child == child_id )
|
||||
{
|
||||
sd->status.child = 0;
|
||||
sd->status.skill[410].id = 0;
|
||||
sd->status.skill[410].lv = 0;
|
||||
sd->status.skill[410].flag = 0;
|
||||
clif_skillinfoblock(sd);
|
||||
@ -900,6 +901,7 @@ int chrif_deadopt(int father_id, int mother_id, int child_id)
|
||||
if( mother_id && (sd = map_charid2sd(mother_id)) != NULL && sd->status.child == child_id )
|
||||
{
|
||||
sd->status.child = 0;
|
||||
sd->status.skill[410].id = 0;
|
||||
sd->status.skill[410].lv = 0;
|
||||
sd->status.skill[410].flag = 0;
|
||||
clif_skillinfoblock(sd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user