mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-25 08:22:53 +08:00
Will
This commit is contained in:
parent
aa4489497e
commit
ad1c3f9a3b
@ -36,13 +36,14 @@ public class HandlerAvatarFetterLevelRewardReq extends PacketHandler {
|
|||||||
|
|
||||||
if (session.getPlayer().getNameCardList().contains(cardId)) {
|
if (session.getPlayer().getNameCardList().contains(cardId)) {
|
||||||
// Already got divorce certificate.
|
// Already got divorce certificate.
|
||||||
session.send(new PacketAvatarFetterLevelRewardRsp(req.getAvatarGuid(), req.getFetterLevel()));
|
session.getPlayer().sendPacket(new PacketAvatarFetterLevelRewardRsp(req.getAvatarGuid(), req.getFetterLevel()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
GenshinItem item = new GenshinItem(cardId);
|
GenshinItem item = new GenshinItem(cardId);
|
||||||
|
session.getPlayer().getInventory().addItem(item);
|
||||||
session.getPlayer().sendPacket(new PacketItemAddHintNotify(item, ActionReason.FetterLevelReward));
|
session.getPlayer().sendPacket(new PacketItemAddHintNotify(item, ActionReason.FetterLevelReward));
|
||||||
session.send(new PacketUnlockNameCardNotify(cardId));
|
session.getPlayer().sendPacket(new PacketUnlockNameCardNotify(cardId));
|
||||||
session.send(new PacketAvatarFetterLevelRewardRsp(avatarGuid, req.getFetterLevel(), rewardId));
|
session.send(new PacketAvatarFetterLevelRewardRsp(avatarGuid, req.getFetterLevel(), rewardId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user