/// <summary> /// Set light level and update /// to creature's around this creature. /// </summary> public void AppendSpellLightLevel(byte lightLevel, int lightSeconds) { if (SpellLightLevel >= lightLevel) { return; } LightTicks = lightSeconds / 5; SpellLightLevel = lightLevel; World.AppendUpdateLight(this); LightCheck = new LightCheck(); LightCheck.CurrentCreature = this; LightCheck.TimeInCS = 500; LightCheck.World = World; World.AddEventInCS(LightCheck.TimeInCS, LightCheck.PerformCheck); }