public override void Activate(uint stackID)
 {
     if (_activeStack != null)
     {
         _activeStack.Disable();
     }
     _activeStack = BuffStack.FirstOrDefault(x => x.StackID == stackID);
     if (_activeStack == null)
     {
         throw new EIBuffSimulatorIDException("Activate has failed");
     }
     _activeStack.Activate();
 }
Example #2
0
        public override void Reset(uint stackID, long toDuration)
        {
            BuffStackItemID toDisable = BuffStack.FirstOrDefault(x => x.StackID == stackID);

            if (toDisable == null)
            {
                throw new EIBuffSimulatorIDException("Reset has failed");
            }
            toDisable.Disable();
        }