fix: Fixes bug with non blessed starter spellbooks (#2368)

This commit is contained in:
Jack 2026-03-13 20:20:23 +13:00 committed by GitHub
parent bb62434f46
commit 31b22d4773
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -552,7 +552,7 @@ public static partial class CharacterCreation
}
// animate dead, evil omen, pain spike, summon familiar, wraith form
m.PackItem(new NecromancerSpellbook(0x8981ul) { LootType = LootType.Blessed });
m.PackItem(new NecromancerSpellbook(0x8981ul));
return;
}
case "paladin":
@ -590,7 +590,7 @@ public static partial class CharacterCreation
EquipItem(m, new BodySash(0xCF));
}
m.PackItem(new BookOfChivalry { LootType = LootType.Blessed });
m.PackItem(new BookOfChivalry());
return;
}
case "samurai":
@ -721,7 +721,7 @@ public static partial class CharacterCreation
return;
}
if (!Core.AOS)
if (!Core.AOS && item.LootType == LootType.Regular)
{
item.LootType = LootType.Newbied;
}
@ -745,7 +745,7 @@ public static partial class CharacterCreation
private static void PackItem(this Mobile m, Item item)
{
if (!Core.AOS)
if (!Core.AOS && item.LootType == LootType.Regular)
{
item.LootType = LootType.Newbied;
}
@ -1192,7 +1192,7 @@ public static partial class CharacterCreation
m.PackScroll(1);
m.PackScroll(2);
EquipItem(m, new Spellbook(0x382A8C38ul) { LootType = LootType.Blessed });
EquipItem(m, new Spellbook(0x382A8C38ul));
EquipItem(m, Robe(raceFlag, female, Utility.RandomBlueHue()));
if (elf)