Fixed FailedRemoveCards still removing Armor Enchant (followed up to r14282)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14283 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
b3a056acf2
commit
0ac0fa1705
@ -9829,10 +9829,8 @@ BUILDIN_FUNC(failedremovecards)
|
|||||||
item_tmp.id=0,item_tmp.nameid=sd->status.inventory[i].card[c];
|
item_tmp.id=0,item_tmp.nameid=sd->status.inventory[i].card[c];
|
||||||
item_tmp.equip=0,item_tmp.identify=1,item_tmp.refine=0;
|
item_tmp.equip=0,item_tmp.identify=1,item_tmp.refine=0;
|
||||||
item_tmp.attribute=0,item_tmp.expire_time=0;
|
item_tmp.attribute=0,item_tmp.expire_time=0;
|
||||||
for (j = 0; j < sd->inventory_data[i]->slot; j++)
|
for (j = 0; j < MAX_SLOTS; j++)
|
||||||
item_tmp.card[j]=0;
|
item_tmp.card[j]=0;
|
||||||
for (j = sd->inventory_data[i]->slot; j < MAX_SLOTS; j++)
|
|
||||||
item_tmp.card[j]=sd->status.inventory[i].card[j];
|
|
||||||
|
|
||||||
//Logs items, got from (N)PC scripts [Lupus]
|
//Logs items, got from (N)PC scripts [Lupus]
|
||||||
if(log_config.enable_logs&0x40)
|
if(log_config.enable_logs&0x40)
|
||||||
@ -9866,8 +9864,10 @@ BUILDIN_FUNC(failedremovecards)
|
|||||||
if(log_config.enable_logs&0x40)
|
if(log_config.enable_logs&0x40)
|
||||||
log_pick_pc(sd, "N", sd->status.inventory[i].nameid, -1, &sd->status.inventory[i]);
|
log_pick_pc(sd, "N", sd->status.inventory[i].nameid, -1, &sd->status.inventory[i]);
|
||||||
|
|
||||||
for (j = 0; j < MAX_SLOTS; j++)
|
for (j = 0; j < sd->inventory_data[i]->slot; j++)
|
||||||
item_tmp.card[j]=0;
|
item_tmp.card[j]=0;
|
||||||
|
for (j = sd->inventory_data[i]->slot; j < MAX_SLOTS; j++)
|
||||||
|
item_tmp.card[j]=sd->status.inventory[i].card[j];
|
||||||
pc_delitem(sd,i,1,0);
|
pc_delitem(sd,i,1,0);
|
||||||
|
|
||||||
//Logs items, got from (N)PC scripts [Lupus]
|
//Logs items, got from (N)PC scripts [Lupus]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user