//----------------------------------------------- private void On_BuffEnd(On.RoR2.CharacterBody.orig_RemoveBuff orig, CharacterBody self, BuffIndex bufftype) //returns to normal form after equip time ends { orig(self, bufftype); if (bufftype.Equals(ImpExtractBuff)) { self.masterObject.GetComponent <ImpExtractComponent>().RemoveImp(true); //IL.RoR2.UI.ContextManager.Update -= IL_DrawHUD; } }