Infusion
Infusion copied to clipboard
Consider using null pattern for GameObjects
So it is not necessary to check a GameObject for null when retrieving it from UO.Items/Mobiles/Corpses.
Something like this should be possible then:
if (UO.Items[myItemId].GetDistance(UO.Me) < 2)
if (UO.Items[myItemId].Exists)
FirstOrDefault has to support the null pattern as well.