public static float GetBurrowBuffDuration(this Obj_AI_Base target) { var buff = target.GetBurrowBuff(); if (buff != null) { return(Math.Max(0, buff.EndTime - Game.Time)); } return(0); }