fix: Fixes polymorph spell (#2173)

This commit is contained in:
Kamron Batman 2025-05-04 09:31:32 -07:00 committed by GitHub
parent da517f56c4
commit f0f7d44d4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -137,7 +137,7 @@ namespace Server.Gumps
var entries = Categories[cat];
if (ent < 0 || ent >= entries.Entries.Length)
if (ent >= 0 && ent < entries.Entries.Length)
{
Spell spell = new PolymorphSpell(state.Mobile, _scroll, entries.Entries[ent].BodyID);
spell.Cast();