fix: remove dojo key after being kicked from clan
This commit is contained in:
parent
0c06776985
commit
236cccc137
@ -17,9 +17,9 @@ export const removeFromGuildController: RequestHandler = async (req, res) => {
|
|||||||
inventory.GuildId = undefined;
|
inventory.GuildId = undefined;
|
||||||
|
|
||||||
// Remove clan key or blueprint from kicked member
|
// Remove clan key or blueprint from kicked member
|
||||||
const itemIndex = inventory.MiscItems.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKey");
|
const itemIndex = inventory.LevelKeys.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKey");
|
||||||
if (itemIndex != -1) {
|
if (itemIndex != -1) {
|
||||||
inventory.MiscItems.splice(itemIndex, 1);
|
inventory.LevelKeys.splice(itemIndex, 1);
|
||||||
} else {
|
} else {
|
||||||
const recipeIndex = inventory.Recipes.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKeyBlueprint");
|
const recipeIndex = inventory.Recipes.findIndex(x => x.ItemType == "/Lotus/Types/Keys/DojoKeyBlueprint");
|
||||||
if (recipeIndex != -1) {
|
if (recipeIndex != -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user