fix: Fixes slayer assignment (#2344)

This commit is contained in:
Bohica 2026-02-26 19:14:19 -08:00 • committed by GitHub
parent c494fb4cc3
commit 5ea926bf1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -764,8 +764,7 @@ namespace Server
{
weapon.Slayer = SlayerName.Silver;
}
if (from != null && weapon.AccuracyLevel == 0 && weapon.DamageLevel == 0 &&
else if (from != null && weapon.AccuracyLevel == 0 && weapon.DamageLevel == 0 &&
weapon.DurabilityLevel == 0 && weapon.Slayer == SlayerName.None && Utility.Random(100) < 5)
{
weapon.Slayer = SlayerGroup.GetLootSlayerType(from.GetType());