Beispiel #1
0
        public void InvalidateCarryEffect()
        {
            if (_Carrier == null || _Carrier.Deleted || !IsChildOf(_Carrier.Backpack) || DateTime.UtcNow < _nextEffectValidation)
            {
                return;
            }

            new EffectInfo(_Carrier.Clone3D(0, 0, 22), _Carrier.Map, ItemID, 2498).Send();

            _nextEffectValidation = DateTime.UtcNow + (_Carrier.Direction.HasFlag(Direction.Running) ? HalfSecond : OneSecond);
        }