ModernUO/Projects/UOContent.Tests/Tests/Mobiles
Robert Dickey 75f326bfdd
fix: handle null maps when deactivating creature AI (#2629)
An uncontrolled creature with `Map == null` throws in `BaseAI.Deactivate()` when the condition reaches `Map.GetSector()`. A controlled creature with a null map avoids the exception but leaves its AI timer running.

Treat a null map like `Map.Internal` in the existing stop condition. This stops the timer without dereferencing the missing map and leaves the existing valid-map condition and return-home scheduling unchanged.

Addresses only the null-map `Deactivate()` item in #2627; the other audit items remain separate. No era-specific rules are changed.
2026-09-11 17:26:47 -07:00
..
AI fix: handle null maps when deactivating creature AI (#2629) 2026-09-11 17:26:47 -07:00
BaseCreatureSerializationTests.cs refactor: Changes BaseCreature to the SerializationGenerator (delta save requirement) (#2611) 2026-09-06 14:11:51 -07:00
LootingRightsTests.cs perf: keep damage entries in an inline intrusive list (#2605) 2026-09-01 23:25:14 -07:00
MountRegionTests.cs fix: respect active region MountsAllowed for players (#2630) 2026-09-11 17:26:06 -07:00