private void TurnOn(IEntity source) { if (On) { return; } On = true; AuraUpdateInstructionsQueue.Enqueue(new AuraUpdateInstruction(Instruction.AddAll), 1); }
private void TurnOff(IEntity source) { if (!On) { return; } On = false; if (source.Game.Logging) { source.Game.Log(LogLevel.DEBUG, BlockType.TRIGGER, "SwitchingAura.TurnOff", $"{source} triggers {_offTrigger}. {Owner}'s aura is now turned off for this turn."); } AuraUpdateInstructionsQueue.Enqueue(new AuraUpdateInstruction(Instruction.RemoveAll), 0); }