Fix grade upgrade fail announcement (#7189)

Co-authored-by: Aleos <aleos89@users.noreply.github.com>
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
This commit is contained in:
eppc0330
2022-12-05 17:55:58 +09:00
committed by GitHub
parent 5549ad2ac2
commit 7bfae25c74
6 changed files with 51 additions and 15 deletions

View File

@@ -23636,12 +23636,12 @@ void clif_parse_enchantgrade_start( int fd, struct map_session_data* sd ){
clif_enchantgrade_result( *sd, index, ENCHANTGRADE_UPGRADE_SUCCESS );
// Check if it has to be announced
if( enchantgradelevel->announce ){
if( enchantgradelevel->announceSuccess ){
clif_enchantgrade_announce( *sd, sd->inventory.u.items_inventory[index], true );
}
}else{
// Check if it has to be announced (has to be done before deleting the item from inventory)
if( enchantgradelevel->announce ){
if( enchantgradelevel->announceFail ){
clif_enchantgrade_announce( *sd, sd->inventory.u.items_inventory[index], false );
}